mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-25 06:25:04 +00:00
Fixed Accept + Follow for shared inboxes.
This commit is contained in:
parent
de6d61f66f
commit
45c5c71f9e
1 changed files with 6 additions and 1 deletions
|
@ -468,11 +468,16 @@ 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, it must be from someone we follow */
|
/* if it's an Undo + Follow, it must be from someone we follow */
|
||||||
if (xs_match(type, "Undo")) {
|
if (xs_match(type, "Undo")) {
|
||||||
return following_check(snac, actor);
|
return following_check(snac, actor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* if it's an Accept + Follow, it must be for a Follow we created */
|
||||||
|
if (xs_match(type, "Accept")) {
|
||||||
|
return following_check(snac, actor);
|
||||||
|
}
|
||||||
|
|
||||||
/* if it's not a Create or Update, allow as is */
|
/* if it's not a Create or Update, allow as is */
|
||||||
if (!xs_match(type, "Create|Update")) {
|
if (!xs_match(type, "Create|Update")) {
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Reference in a new issue