2021-07-09 13:07:12 +02:00
|
|
|
//
|
|
|
|
// APIService+Filter.swift
|
|
|
|
// Mastodon
|
|
|
|
//
|
|
|
|
// Created by MainasuK Cirno on 2021-7-9.
|
|
|
|
//
|
|
|
|
|
|
|
|
import os.log
|
|
|
|
import Combine
|
|
|
|
import CoreData
|
|
|
|
import CoreDataStack
|
|
|
|
import Foundation
|
|
|
|
import MastodonSDK
|
|
|
|
|
|
|
|
extension APIService {
|
|
|
|
|
|
|
|
func filters(
|
2021-07-20 10:40:04 +02:00
|
|
|
mastodonAuthenticationBox: MastodonAuthenticationBox
|
2021-07-09 13:07:12 +02:00
|
|
|
) -> AnyPublisher<Mastodon.Response.Content<[Mastodon.Entity.Filter]>, Error> {
|
|
|
|
let authorization = mastodonAuthenticationBox.userAuthorization
|
|
|
|
let domain = mastodonAuthenticationBox.domain
|
|
|
|
|
|
|
|
return Mastodon.API.Account.filters(session: session, domain: domain, authorization: authorization)
|
|
|
|
}
|
|
|
|
}
|