summary refs log tree commit diff
path: root/synapse/handlers/directory.py
diff options
context:
space:
mode:
authordependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2023-02-22 15:29:09 -0500
committerGitHub <noreply@github.com>2023-02-22 15:29:09 -0500
commit9bb2eac71962970d02842bca441f4bcdbbf93a11 (patch)
tree13b88fe1a0eaa0a02b353623474a8439e5baf46c /synapse/handlers/directory.py
parentTighten the default rate limit of creating new devices. (#15135) (diff)
downloadsynapse-9bb2eac71962970d02842bca441f4bcdbbf93a11.tar.xz
Bump black from 22.12.0 to 23.1.0 (#15103)
Diffstat (limited to 'synapse/handlers/directory.py')
-rw-r--r--synapse/handlers/directory.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/synapse/handlers/directory.py b/synapse/handlers/directory.py
index a5798e9483..1fb23cc9bf 100644
--- a/synapse/handlers/directory.py
+++ b/synapse/handlers/directory.py
@@ -497,9 +497,11 @@ class DirectoryHandler:
                 raise SynapseError(403, "Not allowed to publish room")
 
             # Check if publishing is blocked by a third party module
-            allowed_by_third_party_rules = await (
-                self.third_party_event_rules.check_visibility_can_be_modified(
-                    room_id, visibility
+            allowed_by_third_party_rules = (
+                await (
+                    self.third_party_event_rules.check_visibility_can_be_modified(
+                        room_id, visibility
+                    )
                 )
             )
             if not allowed_by_third_party_rules: