summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authorGravatar default2023-12-17 15:58:13 +0100
committerGravatar default2023-12-17 15:58:13 +0100
commit935c09125da464d064ea9f72b947c5bc235f5328 (patch)
tree0cb7cc18ff6dea5f050ccb747400bfd469f5398e /activitypub.c
parentAdded a prefix to srv_archive_qitem(). (diff)
downloadsnac2-935c09125da464d064ea9f72b947c5bc235f5328.tar.gz
snac2-935c09125da464d064ea9f72b947c5bc235f5328.tar.xz
snac2-935c09125da464d064ea9f72b947c5bc235f5328.zip
More is_msg_for_me() tweaks.
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/activitypub.c b/activitypub.c
index 5c2d1ab..f948edc 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -467,13 +467,13 @@ int is_msg_for_me(snac *snac, const xs_dict *c_msg)
467 return following_check(snac, xs_dict_get(c_msg, "actor")); 467 return following_check(snac, xs_dict_get(c_msg, "actor"));
468 } 468 }
469 469
470 /* if it's an Undo, it must be from someone we follow */ 470 /* if it's an Undo or an Update, it must be from someone we follow */
471 if (strcmp(type, "Undo") == 0) { 471 if (xs_match(type, "Undo|Update")) {
472 return following_check(snac, xs_dict_get(c_msg, "actor")); 472 return following_check(snac, xs_dict_get(c_msg, "actor"));
473 } 473 }
474 474
475 /* if it's not a Create or Update, allow */ 475 /* if it's not a Create, allow as is */
476 if (!xs_match(type, "Create|Update")) { 476 if (!xs_match(type, "Create")) {
477 return 1; 477 return 1;
478 } 478 }
479 479