mirror of
https://mau.dev/maunium/synapse.git
synced 2024-08-23 10:45:48 +00:00
Temp turn off checking for rejections and redactions
This commit is contained in:
parent
619a21812b
commit
02590c3e1d
@ -85,10 +85,8 @@ class StateStore(SQLBaseStore):
|
|||||||
|
|
||||||
def fetch_events(txn, events):
|
def fetch_events(txn, events):
|
||||||
sql = (
|
sql = (
|
||||||
"SELECT e.internal_metadata, e.json, r.event_id, rej.reason "
|
"SELECT e.internal_metadata, e.json "
|
||||||
" FROM event_json as e"
|
" FROM event_json as e"
|
||||||
" LEFT JOIN redactions as r ON e.event_id = r.redacts"
|
|
||||||
" LEFT JOIN rejections as rej on rej.event_id = e.event_id"
|
|
||||||
" WHERE e.event_id IN (%s)"
|
" WHERE e.event_id IN (%s)"
|
||||||
) % (",".join(["?"]*len(events)),)
|
) % (",".join(["?"]*len(events)),)
|
||||||
|
|
||||||
@ -97,8 +95,7 @@ class StateStore(SQLBaseStore):
|
|||||||
|
|
||||||
return [
|
return [
|
||||||
self._get_event_from_row_txn(
|
self._get_event_from_row_txn(
|
||||||
txn, row[0], row[1], row[2],
|
txn, row[0], row[1], None
|
||||||
rejected_reason=row[3],
|
|
||||||
)
|
)
|
||||||
for row in rows
|
for row in rows
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user