diff options
| author | 2022-09-28 20:08:02 +0200 | |
|---|---|---|
| committer | 2022-09-28 20:08:02 +0200 | |
| commit | e4967cfcb375d9611001e0e78be31e9c915a85b6 (patch) | |
| tree | 11c9554661d0a773ce7991dc4bbad07f35e2848f /activitypub.c | |
| parent | Process 'Undo' + 'Follow'. (diff) | |
| download | snac2-e4967cfcb375d9611001e0e78be31e9c915a85b6.tar.gz snac2-e4967cfcb375d9611001e0e78be31e9c915a85b6.tar.xz snac2-e4967cfcb375d9611001e0e78be31e9c915a85b6.zip | |
Process 'Update' + 'Person'.
Diffstat (limited to 'activitypub.c')
| -rw-r--r-- | activitypub.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c index 82bf028..ca6bf52 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -669,10 +669,16 @@ void process_message(snac *snac, char *msg, char *req) | |||
| 669 | else | 669 | else |
| 670 | snac_log(snac, xs_fmt("error requesting 'Announce' object %s", object)); | 670 | snac_log(snac, xs_fmt("error requesting 'Announce' object %s", object)); |
| 671 | } | 671 | } |
| 672 | /* | ||
| 673 | else | 672 | else |
| 674 | if (strcmp(type, "Update") == 0) { | 673 | if (strcmp(type, "Update") == 0) { |
| 674 | if (strcmp(utype, "Person") == 0) { | ||
| 675 | actor_add(snac, actor, xs_dict_get(msg, "object")); | ||
| 676 | snac_log(snac, xs_fmt("updated actor %s", actor)); | ||
| 677 | } | ||
| 678 | else | ||
| 679 | snac_log(snac, xs_fmt("ignored 'Update' for object type '%s'", utype)); | ||
| 675 | } | 680 | } |
| 681 | /* | ||
| 676 | else | 682 | else |
| 677 | if (strcmp(type, "Delete") == 0) { | 683 | if (strcmp(type, "Delete") == 0) { |
| 678 | } | 684 | } |