fix mixup of search params in SearchDataSource.loadRange (#1666)

This commit is contained in:
Konrad Pozniak 2020-02-07 20:23:36 +01:00 committed by GitHub
parent c379014d9a
commit fde23f25d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 4 deletions

View File

@ -87,7 +87,13 @@ class SearchDataSource<T>(
if (source.exhausted) {
return callback.onResult(emptyList())
}
mastodonApi.searchObservable(searchType.apiParameter, searchRequest, true, params.loadSize, params.startPosition, false)
mastodonApi.searchObservable(
query = searchRequest,
type = searchType.apiParameter,
resolve = true,
limit = params.loadSize,
offset = params.startPosition,
following = false)
.subscribe(
{ data ->
// Working around Mastodon bug where exact match is returned no matter