commit 97bf8a9

grunfink  ·  2025-05-26 05:40:08 +0000 UTC
parent 117244e
Fixed search by url for piefed.

Piefed returns 200 OK for webfinger queries, even it it doesn't return any valid data.
1 files changed,  +1, -1
M html.c
M html.c
+1, -1
1@@ -3748,7 +3748,7 @@ int html_get_handler(const xs_dict *req, const char *q_path,
2                 /* may by an actor; try a webfinger */
3                 xs *actor_obj = NULL;
4 
5-                if (valid_status(webfinger_request(q, &actor_obj, &url_acct))) {
6+                if (valid_status(webfinger_request(q, &actor_obj, &url_acct)) && xs_is_string(url_acct)) {
7                     /* it's an actor; do the dirty trick of changing q to the account name */
8                     q = url_acct;
9                 }