diff options
| -rw-r--r-- | activitypub.c | 2 | ||||
| -rw-r--r-- | webfinger.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/activitypub.c b/activitypub.c index e1d4d2d..a983d82 100644 --- a/activitypub.c +++ b/activitypub.c @@ -2799,7 +2799,7 @@ int process_input_message(snac *snac, const xs_dict *msg, const xs_dict *req) "handling follow: %s", actor)); return 1; } - if (strcmp(id, snac->actor) != 0) + if (strcmp(id, snac->actor) != 0 && strcmp(id, snac->actor_alt) != 0) snac_debug(snac, 1, xs_fmt("Undo + Follow from %s not for us (%s)", actor, id)); else if (valid_status(follower_del(snac, actor))) { diff --git a/webfinger.c b/webfinger.c index a86d26e..7c90ead 100644 --- a/webfinger.c +++ b/webfinger.c @@ -277,12 +277,14 @@ int webfinger_get_handler(const xs_dict *req, const char *q_path, links = xs_list_append(links, d); } +#if 0 aliases = xs_list_append(aliases, snac.actor); aliases = xs_list_append(aliases, snac.actor_alt); + obj = xs_dict_append(obj, "aliases", aliases); +#endif obj = xs_dict_append(obj, "subject", acct); - obj = xs_dict_append(obj, "aliases", aliases); obj = xs_dict_append(obj, "links", links); xs_str *j = xs_json_dumps(obj, 4); |