summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-12-17 16:39:25 +0100
committerdefault <nobody@localhost>2023-12-17 16:39:25 +0100
commit9b18d7b377630e919aa1e720961ed96eb11422b6 (patch)
treeb34eb897f25b7bec14ce67ddadb70272a9c47afb
parent29b6b5c717add09a55266fe04ddaea62c414b68e (diff)
Even more is_msg_for_me() tweaks.
-rw-r--r--activitypub.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/activitypub.c b/activitypub.c
index 07d0c17..77a496f 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -468,17 +468,17 @@ int is_msg_for_me(snac *snac, const xs_dict *c_msg)
return following_check(snac, actor);
}
- /* if it's an Undo or an Update, it must be from someone we follow */
- if (xs_match(type, "Undo|Update")) {
+ /* if it's an Undo, it must be from someone we follow */
+ if (xs_match(type, "Undo")) {
return following_check(snac, actor);
}
- /* if it's not a Create, allow as is */
- if (!xs_match(type, "Create")) {
+ /* if it's not a Create or Update, allow as is */
+ if (!xs_match(type, "Create|Update")) {
return 1;
}
- /* if we follow the Creator of this post, allow */
+ /* if we follow the actor of this post, allow */
if (following_check(snac, actor))
return 1;