0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-15 04:23:54 +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:
Mark Haines 2015-12-14 13:55:46 +00:00
parent 0065e554e0
commit 98dfa7d24f

View file

@ -85,6 +85,11 @@ class SearchStore(BackgroundUpdateStore):
# skip over it.
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))
if isinstance(self.database_engine, PostgresEngine):