commit 935c091
default
·
2023-12-17 14:58:13 +0000 UTC
parent fd63754
More is_msg_for_me() tweaks.
1 files changed,
+4,
-4
+4,
-4
1@@ -467,13 +467,13 @@ int is_msg_for_me(snac *snac, const xs_dict *c_msg)
2 return following_check(snac, xs_dict_get(c_msg, "actor"));
3 }
4
5- /* if it's an Undo, it must be from someone we follow */
6- if (strcmp(type, "Undo") == 0) {
7+ /* if it's an Undo or an Update, it must be from someone we follow */
8+ if (xs_match(type, "Undo|Update")) {
9 return following_check(snac, xs_dict_get(c_msg, "actor"));
10 }
11
12- /* if it's not a Create or Update, allow */
13- if (!xs_match(type, "Create|Update")) {
14+ /* if it's not a Create, allow as is */
15+ if (!xs_match(type, "Create")) {
16 return 1;
17 }
18