mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 04:44:52 -04:00
Spam checking: add the invitee to user_may_invite
This commit is contained in:
parent
44f8e383f3
commit
f878e6f8af
3 changed files with 10 additions and 8 deletions
|
@ -225,7 +225,7 @@ class RoomMemberHandler(BaseHandler):
|
|||
block_invite = True
|
||||
|
||||
if not self.spam_checker.user_may_invite(
|
||||
requester.user.to_string(), room_id,
|
||||
requester.user.to_string(), target.to_string(), room_id,
|
||||
):
|
||||
logger.info("Blocking invite due to spam checker")
|
||||
block_invite = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue