diff options
author | default <nobody@localhost> | 2023-09-15 23:18:27 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2023-09-15 23:18:27 +0200 |
commit | 2edbb75a183d631fb77d4e9be0862116dab9190d (patch) | |
tree | c246ec7bd8bda385dbcea52be58088143805530a /activitypub.c | |
parent | 4d4852b6519b58002de066e2b9fb28420208d1a0 (diff) |
Also accept Update activities for Page and Article.
Diffstat (limited to 'activitypub.c')
-rw-r--r-- | activitypub.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/activitypub.c b/activitypub.c index 9427bf5..c43b0f4 100644 --- a/activitypub.c +++ b/activitypub.c @@ -1648,14 +1648,16 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req) } else if (strcmp(type, "Update") == 0) { /** **/ - if (strcmp(utype, "Person") == 0 || strcmp(utype, "Service") == 0) { + if (strcmp(utype, "Person") == 0 || strcmp(utype, "Service") == 0) { /** **/ actor_add(actor, xs_dict_get(msg, "object")); timeline_touch(snac); snac_log(snac, xs_fmt("updated actor %s", actor)); } else - if (strcmp(utype, "Note") == 0) { /** **/ + if (strcmp(utype, "Note") == 0 || /** **/ + strcmp(utype, "Page") == 0 || /** **/ + strcmp(utype, "Article") == 0) { /** **/ const char *id = xs_dict_get(object, "id"); object_add_ow(id, object); |