commit 121df9c

default  ·  2024-10-09 09:03:28 +0000 UTC
parent 24e8fb4
In migrate_account(), always download the alias actor.
1 files changed,  +3, -1
+3, -1
 1@@ -2679,11 +2679,13 @@ int migrate_account(snac *user)
 2     xs *new_actor = NULL;
 3     int status;
 4 
 5-    if (!valid_status(status = actor_request(user, new_account, &new_actor))) {
 6+    if (!valid_status(status = activitypub_request(user, new_account, &new_actor))) {
 7         snac_log(user, xs_fmt("Cannot migrate: error requesting actor %s %d", new_account, status));
 8         return 1;
 9     }
10 
11+    actor_add(new_account, new_actor);
12+
13     const char *loaka = xs_dict_get(new_actor, "alsoKnownAs");
14 
15     if (xs_type(loaka) != XSTYPE_LIST) {