commit e1186ca

grunfink  ·  2026-03-22 08:06:21 +0000 UTC
parent b5524d7
Commented out aliases in webfinger, as they are generating following problems.

At least for misskey, because it's using the /users/... alias
instead of the real actor id.
2 files changed,  +4, -2
+1, -1
1@@ -2799,7 +2799,7 @@ int process_input_message(snac *snac, const xs_dict *msg, const xs_dict *req)
2                       "handling follow: %s", actor));
3                 return 1;
4             }
5-            if (strcmp(id, snac->actor) != 0)
6+            if (strcmp(id, snac->actor) != 0 && strcmp(id, snac->actor_alt) != 0)
7                 snac_debug(snac, 1, xs_fmt("Undo + Follow from %s not for us (%s)", actor, id));
8             else
9             if (valid_status(follower_del(snac, actor))) {
+3, -1
 1@@ -277,12 +277,14 @@ int webfinger_get_handler(const xs_dict *req, const char *q_path,
 2             links = xs_list_append(links, d);
 3         }
 4 
 5+#if 0
 6         aliases = xs_list_append(aliases, snac.actor);
 7         aliases = xs_list_append(aliases, snac.actor_alt);
 8 
 9+        obj = xs_dict_append(obj, "aliases", aliases);
10+#endif
11 
12         obj = xs_dict_append(obj, "subject", acct);
13-        obj = xs_dict_append(obj, "aliases", aliases);
14         obj = xs_dict_append(obj, "links",   links);
15 
16         xs_str *j = xs_json_dumps(obj, 4);