mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-09 19:50:26 +03:00
Even more is_msg_for_me() tweaks.
This commit is contained in:
parent
29b6b5c717
commit
9b18d7b377
@ -468,17 +468,17 @@ int is_msg_for_me(snac *snac, const xs_dict *c_msg)
|
|||||||
return following_check(snac, actor);
|
return following_check(snac, actor);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* if it's an Undo or an Update, it must be from someone we follow */
|
/* if it's an Undo, it must be from someone we follow */
|
||||||
if (xs_match(type, "Undo|Update")) {
|
if (xs_match(type, "Undo")) {
|
||||||
return following_check(snac, actor);
|
return following_check(snac, actor);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* if it's not a Create, allow as is */
|
/* if it's not a Create or Update, allow as is */
|
||||||
if (!xs_match(type, "Create")) {
|
if (!xs_match(type, "Create|Update")) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* if we follow the Creator of this post, allow */
|
/* if we follow the actor of this post, allow */
|
||||||
if (following_check(snac, actor))
|
if (following_check(snac, actor))
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user