commit 45c5c71
default
·
2023-12-18 10:15:53 +0000 UTC
parent de6d61f
Fixed Accept + Follow for shared inboxes.
1 files changed,
+6,
-1
+6,
-1
1@@ -468,11 +468,16 @@ int is_msg_for_me(snac *snac, const xs_dict *c_msg)
2 return following_check(snac, actor);
3 }
4
5- /* if it's an Undo, it must be from someone we follow */
6+ /* if it's an Undo + Follow, it must be from someone we follow */
7 if (xs_match(type, "Undo")) {
8 return following_check(snac, actor);
9 }
10
11+ /* if it's an Accept + Follow, it must be for a Follow we created */
12+ if (xs_match(type, "Accept")) {
13+ return following_check(snac, actor);
14+ }
15+
16 /* if it's not a Create or Update, allow as is */
17 if (!xs_match(type, "Create|Update")) {
18 return 1;