mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-07-27 12:35:19 -04:00
Fix a long-standing bug where the user directory would return 1 more row than requested. (#14631)
This commit is contained in:
parent
9e82caac45
commit
cf1059d045
4 changed files with 10 additions and 3 deletions
|
@ -886,7 +886,7 @@ class UserDirectoryStore(UserDirectoryBackgroundUpdateStore):
|
|||
|
||||
limited = len(results) > limit
|
||||
|
||||
return {"limited": limited, "results": results}
|
||||
return {"limited": limited, "results": results[0:limit]}
|
||||
|
||||
|
||||
def _parse_query_sqlite(search_term: str) -> str:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue