mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-25 13:19:22 -05:00
Exempt bot users
This commit is contained in:
parent
ffa5b757c7
commit
9ba32f6573
@ -469,7 +469,7 @@ class EventCreationHandler(object):
|
||||
|
||||
u = yield self.store.get_user_by_id(user_id)
|
||||
assert u is not None
|
||||
if u["user_type"] == UserTypes.SUPPORT:
|
||||
if u["user_type"] == UserTypes.SUPPORT or u["user_type"] == UserTypes.BOT:
|
||||
# support users are not required to consent
|
||||
return
|
||||
if u["appservice_id"] is not None:
|
||||
|
Loading…
Reference in New Issue
Block a user