mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-16 04:23:50 +01:00
fixup
This commit is contained in:
parent
c980c7e31f
commit
8b618041ef
1 changed files with 1 additions and 1 deletions
|
@ -648,7 +648,7 @@ class UserDirectoryStore(BackgroundUpdateStore):
|
||||||
) AS s USING (user_id)
|
) AS s USING (user_id)
|
||||||
"""
|
"""
|
||||||
join_args = (user_id,)
|
join_args = (user_id,)
|
||||||
where_clause = "p.user_id IS NOT NULL"
|
where_clause = "(s.user_id IS NOT NULL OR p.user_id IS NOT NULL)"
|
||||||
|
|
||||||
if isinstance(self.database_engine, PostgresEngine):
|
if isinstance(self.database_engine, PostgresEngine):
|
||||||
full_query, exact_query, prefix_query = _parse_query_postgres(search_term)
|
full_query, exact_query, prefix_query = _parse_query_postgres(search_term)
|
||||||
|
|
Loading…
Reference in a new issue