mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Merge pull request #447 from matrix-org/rav/fix_search_pagination
Fix 500 error when back-paginating search results
This commit is contained in:
commit
8b9f471d27
@ -286,8 +286,10 @@ class SearchStore(BackgroundUpdateStore):
|
||||
"(%s)" % (" OR ".join(local_clauses),)
|
||||
)
|
||||
|
||||
count_args = args
|
||||
count_clauses = clauses
|
||||
# take copies of the current args and clauses lists, before adding
|
||||
# pagination clauses to main query.
|
||||
count_args = list(args)
|
||||
count_clauses = list(clauses)
|
||||
|
||||
if pagination_token:
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user