diff options
| author | grunfink <grunfink@comam.es> | 2025-05-26 07:40:08 +0200 |
|---|---|---|
| committer | grunfink <grunfink@comam.es> | 2025-05-26 07:40:08 +0200 |
| commit | 97bf8a9cbceeddb96abc65e1c61a3022b173b352 (patch) | |
| tree | 4cfd0be36cc045ca22e169e5b0ce7a0f9a8a0319 /html.c | |
| parent | 117244e16936840a8abdf4c07d33ec0b50f7d7d2 (diff) | |
Fixed search by url for piefed.
Piefed returns 200 OK for webfinger queries, even it it doesn't return any valid data.
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |