commit f32c7dd
default
·
2023-12-15 21:25:14 +0000 UTC
parent 3e3dee8
More tweaks to is_msg_for_me().
1 files changed,
+3,
-3
+3,
-3
1@@ -464,8 +464,7 @@ int is_msg_for_me(snac *snac, const xs_dict *c_msg)
2 return 2;
3
4 /* if it's by someone we don't follow, reject */
5- if (!following_check(snac, xs_dict_get(c_msg, "actor")))
6- return 0;
7+ return following_check(snac, xs_dict_get(c_msg, "actor"));
8 }
9
10 /* if it's an Undo, it must be from someone we follow */
11@@ -474,8 +473,9 @@ int is_msg_for_me(snac *snac, const xs_dict *c_msg)
12 }
13
14 /* if it's not a Create or Update, allow */
15- if (!xs_match(type, "Create|Update"))
16+ if (!xs_match(type, "Create|Update")) {
17 return 1;
18+ }
19
20 xs_dict *msg = xs_dict_get(c_msg, "object");
21 xs *rcpts = recipient_list(snac, msg, 0);