commit 13ffca1
grunfink
·
2025-06-07 08:05:23 +0000 UTC
parent dfd246a
Another search by URL tweak (for Pixelfed).
1 files changed,
+8,
-0
M
html.c
M
html.c
+8,
-0
1@@ -3795,6 +3795,14 @@ int html_get_handler(const xs_dict *req, const char *q_path,
2 timeline_add(&snac, q, object);
3 }
4 }
5+ else {
6+ /* retry webfinger, this time with the 'official' id */
7+ const char *id = xs_dict_get(object, "id");
8+
9+ if (xs_is_string(id) && valid_status(webfinger_request(id, &actor_obj, &url_acct)) &&
10+ xs_is_string(url_acct))
11+ q = url_acct;
12+ }
13 }
14 }
15