mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
fix: Apply check_all_joins to make_join
This commit is contained in:
@@ -122,6 +122,15 @@ pub(crate) async fn create_join_event_template_route(
|
|||||||
None
|
None
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
if services.antispam.check_all_joins() {
|
||||||
|
if let Err(_) = services
|
||||||
|
.antispam
|
||||||
|
.meowlnir_accept_make_join(body.room_id.clone(), body.user_id.clone())
|
||||||
|
.await
|
||||||
|
{
|
||||||
|
return Err!(Request(Forbidden("Antispam rejected join request.")));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
let (_pdu, mut pdu_json) = services
|
let (_pdu, mut pdu_json) = services
|
||||||
.rooms
|
.rooms
|
||||||
|
|||||||
Reference in New Issue
Block a user