From 97bf8a9cbceeddb96abc65e1c61a3022b173b352 Mon Sep 17 00:00:00 2001 From: grunfink Date: Mon, 26 May 2025 07:40:08 +0200 Subject: Fixed search by url for piefed. Piefed returns 200 OK for webfinger queries, even it it doesn't return any valid data. --- html.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'html.c') diff --git a/html.c b/html.c index de2fdce..83dac0a 100644 --- a/html.c +++ b/html.c @@ -3748,7 +3748,7 @@ int html_get_handler(const xs_dict *req, const char *q_path, /* may by an actor; try a webfinger */ xs *actor_obj = NULL; - if (valid_status(webfinger_request(q, &actor_obj, &url_acct))) { + if (valid_status(webfinger_request(q, &actor_obj, &url_acct)) && xs_is_string(url_acct)) { /* it's an actor; do the dirty trick of changing q to the account name */ q = url_acct; } -- cgit v1.2.3