diff options
author | default <nobody@localhost> | 2022-09-28 20:08:02 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2022-09-28 20:08:02 +0200 |
commit | e4967cfcb375d9611001e0e78be31e9c915a85b6 (patch) | |
tree | 11c9554661d0a773ce7991dc4bbad07f35e2848f /activitypub.c | |
parent | c38cc09e4c593f4c7a53df6e289e8b6af03bd9ca (diff) |
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) else snac_log(snac, xs_fmt("error requesting 'Announce' object %s", object)); } -/* else if (strcmp(type, "Update") == 0) { + if (strcmp(utype, "Person") == 0) { + actor_add(snac, actor, xs_dict_get(msg, "object")); + snac_log(snac, xs_fmt("updated actor %s", actor)); + } + else + snac_log(snac, xs_fmt("ignored 'Update' for object type '%s'", utype)); } +/* else if (strcmp(type, "Delete") == 0) { } |