summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorGravatar default2025-01-01 18:01:56 +0100
committerGravatar default2025-01-01 18:01:56 +0100
commit4b87557048af170a5f0e2abb7940e01def09f2ff (patch)
treec3105c81ba75cdf7ab8fb4502ec83ed8fdfcf915 /html.c
parentFix for some repeated search results. (diff)
downloadsnac2-4b87557048af170a5f0e2abb7940e01def09f2ff.tar.gz
snac2-4b87557048af170a5f0e2abb7940e01def09f2ff.tar.xz
snac2-4b87557048af170a5f0e2abb7940e01def09f2ff.zip
When search for URLs, rewrite the query string to be the real post id.
Diffstat (limited to 'html.c')
-rw-r--r--html.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/html.c b/html.c
index a04e148..667f525 100644
--- a/html.c
+++ b/html.c
@@ -3100,6 +3100,10 @@ int html_get_handler(const xs_dict *req, const char *q_path,
3100 snac_debug(&snac, 1, xs_fmt("Request author %s of %s %d", attr_to, q, status)); 3100 snac_debug(&snac, 1, xs_fmt("Request author %s of %s %d", attr_to, q, status));
3101 3101
3102 if (valid_status(status)) { 3102 if (valid_status(status)) {
3103 /* reset the query string to be the real id */
3104 url_acct = xs_dup(xs_dict_get(object, "id"));
3105 q = url_acct;
3106
3103 /* add the actor */ 3107 /* add the actor */
3104 actor_add(attr_to, actor_obj); 3108 actor_add(attr_to, actor_obj);
3105 3109