mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-15 05:06:53 +00:00
feat: Do not sync invites from 4155-ignored users
This commit is contained in:
1 parent
41fb65f379
commit
b1df6911b3
2 files changed
+39
-12
No files matched your search
@@ -117,6 +117,9 @@ pub(crate) async fn create_invite_route(
|
||||
.await;
|
||||
|
||||
if matches!(recipient_invite_filter_level, FilterLevel::Block) {
|
||||
// return an error for blocked invites. ignored invites aren't handled here
|
||||
// since the recipient's membership should still be changed to `invite`.
|
||||
// they're filtered out in api::client::message::is_ignored_pdu
|
||||
return Err!(Request(InviteBlocked(
|
||||
"{recipient_user} has blocked invites from {sender_user}."
|
||||
)));
|
||||
|
||||
Reference in new issue
Block a user