mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 13:25:04 +00:00
Avoid propagating Undo messages innecesarily.
This commit is contained in:
parent
0dd4739cc6
commit
3e3dee8a2f
1 changed files with 5 additions and 0 deletions
|
@ -468,6 +468,11 @@ int is_msg_for_me(snac *snac, const xs_dict *c_msg)
|
|||
return 0;
|
||||
}
|
||||
|
||||
/* if it's an Undo, it must be from someone we follow */
|
||||
if (strcmp(type, "Undo") == 0) {
|
||||
return following_check(snac, xs_dict_get(c_msg, "actor"));
|
||||
}
|
||||
|
||||
/* if it's not a Create or Update, allow */
|
||||
if (!xs_match(type, "Create|Update"))
|
||||
return 1;
|
||||
|
|
Loading…
Reference in a new issue