mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-12-25 16:53:37 +00:00
In migrate_account(), always download the alias actor.
This commit is contained in:
parent
24e8fb49f4
commit
121df9cf0e
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue