diff options
author | default <nobody@localhost> | 2022-11-25 12:09:30 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2022-11-25 12:09:30 +0100 |
commit | e2c332c68a5b2dabd7f9fff41a86f0ae60de02d9 (patch) | |
tree | c10b209eb78197b9bb2bebb9b2d18e2b820666c2 /activitypub.c | |
parent | 200a6a0c91b8c4132aacf4eca9033a74ce3dfc8e (diff) |
On Update + Person, call object_del() before actor_add().
Diffstat (limited to 'activitypub.c')
-rw-r--r-- | activitypub.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activitypub.c b/activitypub.c index bb091ff..f3f15af 100644 --- a/activitypub.c +++ b/activitypub.c @@ -917,7 +917,9 @@ int process_message(snac *snac, char *msg, char *req) else if (strcmp(type, "Update") == 0) { if (strcmp(utype, "Person") == 0) { + object_del(actor); actor_add(snac, actor, xs_dict_get(msg, "object")); + snac_log(snac, xs_fmt("updated actor %s", actor)); } else |