mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-24 09:49:19 -04:00
Revert "Allow room moderators to view redacted event content"
This reverts commit 2dc2979af5
.
The feature was merged to upstream, and merging upstream will be cleaner
without this commit here.
This commit is contained in:
parent
ff7bece06f
commit
90c00fb04b
4 changed files with 3 additions and 84 deletions
|
@ -303,15 +303,6 @@ class EventsWorkerStore(SQLBaseStore):
|
|||
desc="get_received_ts",
|
||||
)
|
||||
|
||||
async def have_censored_event(self, event_id: str) -> Optional[bool]:
|
||||
return await self.db_pool.simple_select_one_onecol(
|
||||
table="redactions",
|
||||
keyvalues={"redacts": event_id},
|
||||
retcol="have_censored",
|
||||
desc="get_have_censored",
|
||||
allow_none=True,
|
||||
)
|
||||
|
||||
# Inform mypy that if allow_none is False (the default) then get_event
|
||||
# always returns an EventBase.
|
||||
@overload
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue