mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Fix regression where we did not return redacted events.
This commit is contained in:
parent
b01159f234
commit
cdc1b5d629
@ -469,7 +469,7 @@ class SQLBaseStore(object):
|
||||
|
||||
select_event_sql = "SELECT * FROM events WHERE event_id = ?"
|
||||
|
||||
for ev in events:
|
||||
for i, ev in enumerate(events):
|
||||
signatures = self._get_event_origin_signatures_txn(
|
||||
txn, ev.event_id,
|
||||
)
|
||||
@ -522,6 +522,7 @@ class SQLBaseStore(object):
|
||||
|
||||
if del_evs:
|
||||
ev = prune_event(ev)
|
||||
events[i] = ev
|
||||
ev.redacted_because = del_evs[0]
|
||||
|
||||
return events
|
||||
|
Loading…
Reference in New Issue
Block a user