mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-18 16:02:15 +01:00
Skip events that where the body, name or topic isn't a string when back populating the FTS index
This commit is contained in:
parent
0065e554e0
commit
98dfa7d24f
1 changed files with 5 additions and 0 deletions
|
@ -85,6 +85,11 @@ class SearchStore(BackgroundUpdateStore):
|
||||||
# skip over it.
|
# skip over it.
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
if not isinstance(value, basestring):
|
||||||
|
# If the event body, name or topic isn't a string
|
||||||
|
# then skip over it
|
||||||
|
continue
|
||||||
|
|
||||||
event_search_rows.append((event_id, room_id, key, value))
|
event_search_rows.append((event_id, room_id, key, value))
|
||||||
|
|
||||||
if isinstance(self.database_engine, PostgresEngine):
|
if isinstance(self.database_engine, PostgresEngine):
|
||||||
|
|
Loading…
Reference in a new issue