summary refs log tree commit diff
path: root/synapse/push/httppusher.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2021-04-23 18:11:23 +0100
committerAndrew Morgan <andrew@amorgan.xyz>2021-04-23 18:11:23 +0100
commit2d95fa1e5778625af66691e2c33470d7e8dcddd7 (patch)
tree3e37977013af9c867c5b8c11bfc0add74ff816ba /synapse/push/httppusher.py
parentMerge commit 'e2904f720' into anoa/dinsic_release_1_31_0 (diff)
parentFederation API for Space summary (#9652) (diff)
downloadsynapse-2d95fa1e5778625af66691e2c33470d7e8dcddd7.tar.xz
Merge commit '4ecba9bd5' into anoa/dinsic_release_1_31_0
Diffstat (limited to 'synapse/push/httppusher.py')
-rw-r--r--synapse/push/httppusher.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/push/httppusher.py b/synapse/push/httppusher.py

index eb6de8ba72..26af5309c1 100644 --- a/synapse/push/httppusher.py +++ b/synapse/push/httppusher.py
@@ -31,7 +31,7 @@ from synapse.push import Pusher, PusherConfig, PusherConfigException from . import push_rule_evaluator, push_tools if TYPE_CHECKING: - from synapse.app.homeserver import HomeServer + from synapse.server import HomeServer logger = logging.getLogger(__name__) @@ -290,7 +290,7 @@ class HttpPusher(Pusher): if rejected is False: return False - if isinstance(rejected, list) or isinstance(rejected, tuple): + if isinstance(rejected, (list, tuple)): for pk in rejected: if pk != self.pushkey: # for sanity, we only remove the pushkey if it