mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-07 15:24:58 -04:00
Add ability to un-shadow-ban via the admin API. (#11347)
This commit is contained in:
parent
0dda1a7968
commit
24b61f379a
5 changed files with 53 additions and 12 deletions
|
@ -476,7 +476,7 @@ class RegistrationWorkerStore(CacheInvalidationWorkerStore):
|
|||
shadow_banned: true iff the user is to be shadow-banned, false otherwise.
|
||||
"""
|
||||
|
||||
def set_shadow_banned_txn(txn):
|
||||
def set_shadow_banned_txn(txn: LoggingTransaction) -> None:
|
||||
user_id = user.to_string()
|
||||
self.db_pool.simple_update_one_txn(
|
||||
txn,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue