mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-14 20:56:49 +00:00
style: Change Allow to Default etc
`ExplicitAllow` -> `Allow`
This commit is contained in:
2 files changed
+15
-15
No files matched your search
@@ -105,11 +105,11 @@ impl super::Service {
|
||||
) // TODO: MSC4155 probably needs upstreaming to ruma at some point
|
||||
);
|
||||
if stable.is_err() && unstable.is_err() {
|
||||
return FilterLevel::Allow;
|
||||
return FilterLevel::Default;
|
||||
}
|
||||
let content = stable.unwrap_or_else(|_| unstable.unwrap()).content;
|
||||
let verdict = content.user_filter_level(sender_user);
|
||||
if verdict != FilterLevel::Allow {
|
||||
if verdict != FilterLevel::Default {
|
||||
return verdict;
|
||||
}
|
||||
// Apply other layers of invite blocking first, so that user/server
|
||||
@@ -122,7 +122,7 @@ impl super::Service {
|
||||
return FilterLevel::Block;
|
||||
}
|
||||
|
||||
FilterLevel::Allow
|
||||
FilterLevel::Default
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user