snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit 121df9cf0e55b71e1b773dc5d642e50e7f44b885
parent 24e8fb49f4f4770f7663e633e5de0c2b021e4e89
Author: default <nobody@localhost>
Date:   Wed,  9 Oct 2024 11:03:28 +0200

In migrate_account(), always download the alias actor.

Diffstat:
Mactivitypub.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/activitypub.c b/activitypub.c @@ -2679,11 +2679,13 @@ int migrate_account(snac *user) xs *new_actor = NULL; int status; - if (!valid_status(status = actor_request(user, new_account, &new_actor))) { + if (!valid_status(status = activitypub_request(user, new_account, &new_actor))) { snac_log(user, xs_fmt("Cannot migrate: error requesting actor %s %d", new_account, status)); return 1; } + actor_add(new_account, new_actor); + const char *loaka = xs_dict_get(new_actor, "alsoKnownAs"); if (xs_type(loaka) != XSTYPE_LIST) {