Skip to content
Snippets Groups Projects
Commit 98dfa7d2 authored by Mark Haines's avatar Mark Haines
Browse files

Skip events that where the body, name or topic isn't a string when back populating the FTS index

parent 0065e554
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment