summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authorGravatar default2023-06-04 10:49:02 +0200
committerGravatar default2023-06-04 10:49:02 +0200
commit85011994e13d0f3b031e97fed1c0b89bbfee6bc5 (patch)
tree5f1a4caf6108a6f6e3244806ed655fc237e443db /activitypub.c
parentIf a user config field 'bot' is set to true, identies as such. (diff)
downloadsnac2-85011994e13d0f3b031e97fed1c0b89bbfee6bc5.tar.gz
snac2-85011994e13d0f3b031e97fed1c0b89bbfee6bc5.tar.xz
snac2-85011994e13d0f3b031e97fed1c0b89bbfee6bc5.zip
Also accept Update + Service messages.
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c
index 80d6662..f5898b4 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -1445,7 +1445,7 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req)
1445 } 1445 }
1446 else 1446 else
1447 if (strcmp(type, "Update") == 0) { /** **/ 1447 if (strcmp(type, "Update") == 0) { /** **/
1448 if (strcmp(utype, "Person") == 0) { 1448 if (strcmp(utype, "Person") == 0 || strcmp(utype, "Service") == 0) {
1449 actor_add(actor, xs_dict_get(msg, "object")); 1449 actor_add(actor, xs_dict_get(msg, "object"));
1450 timeline_touch(snac); 1450 timeline_touch(snac);
1451 1451