diff options
| author | 2024-10-09 11:03:28 +0200 | |
|---|---|---|
| committer | 2024-10-09 11:03:28 +0200 | |
| commit | 121df9cf0e55b71e1b773dc5d642e50e7f44b885 (patch) | |
| tree | 15afaa9f065dcd7e7143fda7ce2be2a2c3fe6f95 /activitypub.c | |
| parent | Updated RELEASE_NOTES. (diff) | |
| download | snac2-121df9cf0e55b71e1b773dc5d642e50e7f44b885.tar.gz snac2-121df9cf0e55b71e1b773dc5d642e50e7f44b885.tar.xz snac2-121df9cf0e55b71e1b773dc5d642e50e7f44b885.zip | |
In migrate_account(), always download the alias actor.
Diffstat (limited to 'activitypub.c')
| -rw-r--r-- | activitypub.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c index 2791047..2f668a8 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -2679,11 +2679,13 @@ int migrate_account(snac *user) | |||
| 2679 | xs *new_actor = NULL; | 2679 | xs *new_actor = NULL; |
| 2680 | int status; | 2680 | int status; |
| 2681 | 2681 | ||
| 2682 | if (!valid_status(status = actor_request(user, new_account, &new_actor))) { | 2682 | if (!valid_status(status = activitypub_request(user, new_account, &new_actor))) { |
| 2683 | snac_log(user, xs_fmt("Cannot migrate: error requesting actor %s %d", new_account, status)); | 2683 | snac_log(user, xs_fmt("Cannot migrate: error requesting actor %s %d", new_account, status)); |
| 2684 | return 1; | 2684 | return 1; |
| 2685 | } | 2685 | } |
| 2686 | 2686 | ||
| 2687 | actor_add(new_account, new_actor); | ||
| 2688 | |||
| 2687 | const char *loaka = xs_dict_get(new_actor, "alsoKnownAs"); | 2689 | const char *loaka = xs_dict_get(new_actor, "alsoKnownAs"); |
| 2688 | 2690 | ||
| 2689 | if (xs_type(loaka) != XSTYPE_LIST) { | 2691 | if (xs_type(loaka) != XSTYPE_LIST) { |