forked from zelo72/mastodon-ios
24 lines
589 B
Swift
24 lines
589 B
Swift
//
|
|
// APIService+Report.swift
|
|
// Mastodon
|
|
//
|
|
// Created by ihugo on 2021/4/19.
|
|
//
|
|
|
|
import Foundation
|
|
import MastodonSDK
|
|
import Combine
|
|
|
|
extension APIService {
|
|
|
|
func report(
|
|
domain: String,
|
|
query: Mastodon.API.Reports.FileReportQuery,
|
|
mastodonAuthenticationBox: MastodonAuthenticationBox
|
|
) -> AnyPublisher<Mastodon.Response.Content<Bool>, Error> {
|
|
let authorization = mastodonAuthenticationBox.userAuthorization
|
|
|
|
return Mastodon.API.Reports.fileReport(session: session, domain: domain, query: query, authorization: authorization)
|
|
}
|
|
}
|