fix: Apply spam checker to local restricted joins

This commit is contained in:
timedout 2026-01-05 12:12:34 +00:00 committed by Jade Ellis
parent 76865e6f91
commit 4b873a1b95
No known key found for this signature in database
GPG key ID: 8705A2A3EBF77BD2
3 changed files with 78 additions and 49 deletions

View file

@ -214,7 +214,7 @@ pub(crate) async fn user_can_perform_restricted_join(
.await
{
| Ok(()) => Ok(true),
| Err(e) => Err!(Request(Forbidden("Antispam rejected join request."))),
| Err(_) => Err!(Request(Forbidden("Antispam rejected join request."))),
},
| _ => {
debug_info!(