diff options
author | David Baker <dave@matrix.org> | 2017-10-03 17:13:14 +0100 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2017-10-03 17:13:14 +0100 |
commit | 1e375468de914fdefc7c0b4b65217c4ec95784a4 (patch) | |
tree | 1c3809a25ad26eefb077dc68af0fe77302232183 /synapse/handlers/room_member.py | |
parent | Federation was passing strings anyway (diff) | |
download | synapse-1e375468de914fdefc7c0b4b65217c4ec95784a4.tar.xz |
pass room id too
Diffstat (limited to '')
-rw-r--r-- | synapse/handlers/room_member.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/handlers/room_member.py b/synapse/handlers/room_member.py index a33a8ad42b..37985fa1f9 100644 --- a/synapse/handlers/room_member.py +++ b/synapse/handlers/room_member.py @@ -224,7 +224,9 @@ class RoomMemberHandler(BaseHandler): ) block_invite = True - if not self.spam_checker.user_may_invite(requester.user.to_string()): + if not self.spam_checker.user_may_invite( + requester.user.to_string(), room_id, + ): logger.info("Blocking invite due to spam checker") block_invite = True |