diff options
| author | default <nobody@localhost> | 2025-01-01 18:01:56 +0100 |
|---|---|---|
| committer | default <nobody@localhost> | 2025-01-01 18:01:56 +0100 |
| commit | 4b87557048af170a5f0e2abb7940e01def09f2ff (patch) | |
| tree | c3105c81ba75cdf7ab8fb4502ec83ed8fdfcf915 | |
| parent | c1bc0c75185736210a14ce81ea515fafd6ef0617 (diff) | |
When search for URLs, rewrite the query string to be the real post id.
| -rw-r--r-- | html.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -3100,6 +3100,10 @@ int html_get_handler(const xs_dict *req, const char *q_path, snac_debug(&snac, 1, xs_fmt("Request author %s of %s %d", attr_to, q, status)); if (valid_status(status)) { + /* reset the query string to be the real id */ + url_acct = xs_dup(xs_dict_get(object, "id")); + q = url_acct; + /* add the actor */ actor_add(attr_to, actor_obj); |