mirror of
https://github.com/element-hq/synapse.git
synced 2026-05-11 04:06:56 +00: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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user