Procházet zdrojové kódy

Fixed search by url for piefed.

Piefed returns 200 OK for webfinger queries, even it it doesn't return any valid data.
grunfink před 1 rokem
rodič
revize
97bf8a9cbc
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      html.c

+ 1 - 1
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;
                 }