mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-15 01:55:03 +00:00
More is_msg_for_me() tweaks.
This commit is contained in:
parent
fd637549f3
commit
935c09125d
1 changed files with 4 additions and 4 deletions
|
@ -467,13 +467,13 @@ int is_msg_for_me(snac *snac, const xs_dict *c_msg)
|
||||||
return following_check(snac, xs_dict_get(c_msg, "actor"));
|
return following_check(snac, xs_dict_get(c_msg, "actor"));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* if it's an Undo, it must be from someone we follow */
|
/* if it's an Undo or an Update, it must be from someone we follow */
|
||||||
if (strcmp(type, "Undo") == 0) {
|
if (xs_match(type, "Undo|Update")) {
|
||||||
return following_check(snac, xs_dict_get(c_msg, "actor"));
|
return following_check(snac, xs_dict_get(c_msg, "actor"));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* if it's not a Create or Update, allow */
|
/* if it's not a Create, allow as is */
|
||||||
if (!xs_match(type, "Create|Update")) {
|
if (!xs_match(type, "Create")) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue