Resolve all searches

This commit is contained in:
Justin Mazzocchi 2021-05-09 22:10:14 -07:00
parent e8662a1288
commit fa20d7c4f7
No known key found for this signature in database
GPG key ID: E223E6937AAFB01C
3 changed files with 3 additions and 3 deletions

View file

@ -21,7 +21,7 @@ public extension ResultsEndpoint {
public init(query: String,
type: SearchType? = nil,
excludeUnreviewed: Bool = false,
resolve: Bool = false,
resolve: Bool = true,
limit: Int? = nil,
offset: Int? = nil,
following: Bool = false) {

View file

@ -155,7 +155,7 @@ private extension NavigationService {
func webfinger(url: URL) -> AnyPublisher<Navigation, Never> {
let navigationSubject = PassthroughSubject<Navigation, Never>()
let request = mastodonAPIClient.request(ResultsEndpoint.search(.init(query: url.absoluteString, resolve: true)))
let request = mastodonAPIClient.request(ResultsEndpoint.search(.init(query: url.absoluteString)))
.handleEvents(
receiveSubscription: { _ in navigationSubject.send(.webfingerStart) },
receiveCompletion: { _ in navigationSubject.send(.webfingerEnd) })

View file

@ -173,7 +173,7 @@ private extension StatusService {
}
return client
.request(ResultsEndpoint.search(.init(query: status.displayStatus.uri, resolve: true, limit: 1)))
.request(ResultsEndpoint.search(.init(query: status.displayStatus.uri, limit: 1)))
.tryMap {
guard let status = $0.statuses.first else { throw APIError.unableToFetchRemoteStatus }