diff options
| author | 2025-06-07 10:05:23 +0200 | |
|---|---|---|
| committer | 2025-06-07 10:05:23 +0200 | |
| commit | 13ffca1d029f47cc3f9fd92824d75aa1010a64db (patch) | |
| tree | a854b6b481622013730e07de7867e498b16ea836 | |
| parent | Always store resolved account handles as metadata, even if they weren't verif... (diff) | |
| download | snac2-13ffca1d029f47cc3f9fd92824d75aa1010a64db.tar.gz snac2-13ffca1d029f47cc3f9fd92824d75aa1010a64db.tar.xz snac2-13ffca1d029f47cc3f9fd92824d75aa1010a64db.zip | |
Another search by URL tweak (for Pixelfed).
| -rw-r--r-- | html.c | 8 |
1 files changed, 8 insertions, 0 deletions
| @@ -3795,6 +3795,14 @@ int html_get_handler(const xs_dict *req, const char *q_path, | |||
| 3795 | timeline_add(&snac, q, object); | 3795 | timeline_add(&snac, q, object); |
| 3796 | } | 3796 | } |
| 3797 | } | 3797 | } |
| 3798 | else { | ||
| 3799 | /* retry webfinger, this time with the 'official' id */ | ||
| 3800 | const char *id = xs_dict_get(object, "id"); | ||
| 3801 | |||
| 3802 | if (xs_is_string(id) && valid_status(webfinger_request(id, &actor_obj, &url_acct)) && | ||
| 3803 | xs_is_string(url_acct)) | ||
| 3804 | q = url_acct; | ||
| 3805 | } | ||
| 3798 | } | 3806 | } |
| 3799 | } | 3807 | } |
| 3800 | 3808 | ||