summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/activitypub.c b/activitypub.c
index 6d017c6..c6e4b26 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -468,9 +468,9 @@ int is_msg_for_me(snac *snac, const xs_dict *c_msg)
return following_check(snac, actor);
}
- /* if it's an Undo + Follow, it must be from someone that follows us */
+ /* if it's an Undo, it must be from someone related to us */
if (xs_match(type, "Undo")) {
- return follower_check(snac, actor);
+ return follower_check(snac, actor) || following_check(snac, actor);
}
/* if it's an Accept + Follow, it must be for a Follow we created */