diff options
| author | 2023-12-18 13:40:39 +0100 | |
|---|---|---|
| committer | 2023-12-18 13:40:39 +0100 | |
| commit | 90bab08655d7600cd0856e52d05d12a924b77e5f (patch) | |
| tree | b8c605cf5deb074a4a6296b07196ad459b4fe516 | |
| parent | Added some crash checks. (diff) | |
| download | snac2-90bab08655d7600cd0856e52d05d12a924b77e5f.tar.gz snac2-90bab08655d7600cd0856e52d05d12a924b77e5f.tar.xz snac2-90bab08655d7600cd0856e52d05d12a924b77e5f.zip | |
More shared inbox tweaks.
| -rw-r--r-- | activitypub.c | 4 |
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) | |||
| 468 | return following_check(snac, actor); | 468 | return following_check(snac, actor); |
| 469 | } | 469 | } |
| 470 | 470 | ||
| 471 | /* if it's an Undo + Follow, it must be from someone that follows us */ | 471 | /* if it's an Undo, it must be from someone related to us */ |
| 472 | if (xs_match(type, "Undo")) { | 472 | if (xs_match(type, "Undo")) { |
| 473 | return follower_check(snac, actor); | 473 | return follower_check(snac, actor) || following_check(snac, actor); |
| 474 | } | 474 | } |
| 475 | 475 | ||
| 476 | /* if it's an Accept + Follow, it must be for a Follow we created */ | 476 | /* if it's an Accept + Follow, it must be for a Follow we created */ |