diff options
| author | 2022-11-25 12:09:30 +0100 | |
|---|---|---|
| committer | 2022-11-25 12:09:30 +0100 | |
| commit | e2c332c68a5b2dabd7f9fff41a86f0ae60de02d9 (patch) | |
| tree | c10b209eb78197b9bb2bebb9b2d18e2b820666c2 /activitypub.c | |
| parent | The global object database is also purged. (diff) | |
| download | snac2-e2c332c68a5b2dabd7f9fff41a86f0ae60de02d9.tar.gz snac2-e2c332c68a5b2dabd7f9fff41a86f0ae60de02d9.tar.xz snac2-e2c332c68a5b2dabd7f9fff41a86f0ae60de02d9.zip | |
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) | |||
| 917 | else | 917 | else |
| 918 | if (strcmp(type, "Update") == 0) { | 918 | if (strcmp(type, "Update") == 0) { |
| 919 | if (strcmp(utype, "Person") == 0) { | 919 | if (strcmp(utype, "Person") == 0) { |
| 920 | object_del(actor); | ||
| 920 | actor_add(snac, actor, xs_dict_get(msg, "object")); | 921 | actor_add(snac, actor, xs_dict_get(msg, "object")); |
| 922 | |||
| 921 | snac_log(snac, xs_fmt("updated actor %s", actor)); | 923 | snac_log(snac, xs_fmt("updated actor %s", actor)); |
| 922 | } | 924 | } |
| 923 | else | 925 | else |