|
|
@ -87,7 +87,13 @@ class SearchDataSource<T>( |
|
|
|
if (source.exhausted) { |
|
|
|
if (source.exhausted) { |
|
|
|
return callback.onResult(emptyList()) |
|
|
|
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( |
|
|
|
.subscribe( |
|
|
|
{ data -> |
|
|
|
{ data -> |
|
|
|
// Working around Mastodon bug where exact match is returned no matter |
|
|
|
// Working around Mastodon bug where exact match is returned no matter |
|
|
|