commit 9b18d7b
default
·
2023-12-17 15:39:25 +0000 UTC
parent 29b6b5c
Even more is_msg_for_me() tweaks.
1 files changed,
+5,
-5
+5,
-5
1@@ -468,17 +468,17 @@ 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 or an Update, it must be from someone we follow */
6- if (xs_match(type, "Undo|Update")) {
7+ /* if it's an Undo, it must be from someone we follow */
8+ if (xs_match(type, "Undo")) {
9 return following_check(snac, actor);
10 }
11
12- /* if it's not a Create, allow as is */
13- if (!xs_match(type, "Create")) {
14+ /* if it's not a Create or Update, allow as is */
15+ if (!xs_match(type, "Create|Update")) {
16 return 1;
17 }
18
19- /* if we follow the Creator of this post, allow */
20+ /* if we follow the actor of this post, allow */
21 if (following_check(snac, actor))
22 return 1;
23