summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorGravatar grunfink2025-05-26 07:40:08 +0200
committerGravatar grunfink2025-05-26 07:40:08 +0200
commit97bf8a9cbceeddb96abc65e1c61a3022b173b352 (patch)
tree4cfd0be36cc045ca22e169e5b0ce7a0f9a8a0319 /html.c
parentBumped version. (diff)
downloadsnac2-97bf8a9cbceeddb96abc65e1c61a3022b173b352.tar.gz
snac2-97bf8a9cbceeddb96abc65e1c61a3022b173b352.tar.xz
snac2-97bf8a9cbceeddb96abc65e1c61a3022b173b352.zip
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.c2
1 files changed, 1 insertions, 1 deletions
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,
3748 /* may by an actor; try a webfinger */ 3748 /* may by an actor; try a webfinger */
3749 xs *actor_obj = NULL; 3749 xs *actor_obj = NULL;
3750 3750
3751 if (valid_status(webfinger_request(q, &actor_obj, &url_acct))) { 3751 if (valid_status(webfinger_request(q, &actor_obj, &url_acct)) && xs_is_string(url_acct)) {
3752 /* it's an actor; do the dirty trick of changing q to the account name */ 3752 /* it's an actor; do the dirty trick of changing q to the account name */
3753 q = url_acct; 3753 q = url_acct;
3754 } 3754 }