mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-15 05:06:53 +00:00
fix: Stop applying MSC4155 invite filtering to outgoing invites
This commit is contained in:
1 parent
4dc7e06c90
commit
c731ec5421
3 files changed
+12
-14
No files matched your search
@@ -156,14 +156,12 @@ pub(crate) async fn create_room_route(
|
||||
let mut invitees = BTreeSet::new();
|
||||
|
||||
for recipient_user in &body.invite {
|
||||
if !matches!(
|
||||
services
|
||||
.users
|
||||
.invite_filter_level(recipient_user, sender_user)
|
||||
.await,
|
||||
FilterLevel::Allow
|
||||
) {
|
||||
// drop invites if the creator has them blocked
|
||||
// silently drop invites to users the creator has ignored
|
||||
if services
|
||||
.users
|
||||
.user_is_ignored(recipient_user, sender_user)
|
||||
.await
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user