commit 3e3dee8

default  ·  2023-12-15 20:43:34 +0000 UTC
parent 0dd4739
Avoid propagating Undo messages innecesarily.
1 files changed,  +5, -0
+5, -0
 1@@ -468,6 +468,11 @@ int is_msg_for_me(snac *snac, const xs_dict *c_msg)
 2             return 0;
 3     }
 4 
 5+    /* if it's an Undo, it must be from someone we follow */
 6+    if (strcmp(type, "Undo") == 0) {
 7+        return following_check(snac, xs_dict_get(c_msg, "actor"));
 8+    }
 9+
10     /* if it's not a Create or Update, allow */
11     if (!xs_match(type, "Create|Update"))
12         return 1;