commit 4b87557
default
·
2025-01-01 17:01:56 +0000 UTC
parent c1bc0c7
When search for URLs, rewrite the query string to be the real post id.
1 files changed,
+4,
-0
M
html.c
M
html.c
+4,
-0
1@@ -3100,6 +3100,10 @@ int html_get_handler(const xs_dict *req, const char *q_path,
2 snac_debug(&snac, 1, xs_fmt("Request author %s of %s %d", attr_to, q, status));
3
4 if (valid_status(status)) {
5+ /* reset the query string to be the real id */
6+ url_acct = xs_dup(xs_dict_get(object, "id"));
7+ q = url_acct;
8+
9 /* add the actor */
10 actor_add(attr_to, actor_obj);
11