mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-13 12:16:54 +00:00
fix: Check are_all_blocked in server_filter_level
This commit is contained in:
1 file changed
+3
-1
@@ -137,7 +137,9 @@ impl InvitePermissionConfigEventContent {
|
||||
/// Test the filters against a server name. Port numbers are ignored.
|
||||
#[must_use]
|
||||
pub fn server_filter_level(&self, server: &ServerName) -> FilterLevel {
|
||||
if !self.enabled {
|
||||
if self.are_all_blocked() {
|
||||
FilterLevel::Block
|
||||
} else if !self.enabled {
|
||||
FilterLevel::Allow
|
||||
} else {
|
||||
let server = server.host();
|
||||
|
||||
Reference in new issue
Block a user