1
0
Fork 0
mirror of https://gitlab.com/famedly/conduit.git synced 2025-07-22 17:18:35 +00:00

don't rate limit appservices if the registration file says they shouldn't be

This commit is contained in:
Matthias Ahouansou 2024-07-10 10:40:33 +01:00
parent 6a3b194567
commit 1e76cc5cee
No known key found for this signature in database
2 changed files with 9 additions and 1 deletions

View file

@ -324,7 +324,11 @@ where
let target = if let Some(server) = sender_servername.clone() {
Target::Server(server)
} else if let Some(appservice) = appservice_info.clone() {
Target::Appservice(appservice.registration.id)
if appservice.registration.rate_limited.unwrap_or(true) {
Target::Appservice(appservice.registration.id)
} else {
Target::None
}
} else if let Some(user) = sender_user.clone() {
Target::User(user)
} else {