fix: compile failure issue

This commit is contained in:
CMK 2022-11-04 13:28:09 +08:00
parent eb86b5a9d8
commit a7cbbc0239
2 changed files with 2 additions and 2 deletions

View File

@ -162,7 +162,7 @@ extension ReportViewModel {
#else #else
let _ = try await context.apiService.report( let _ = try await context.apiService.report(
query: query, query: query,
authenticationBox: authenticationBox authenticationBox: authContext.mastodonAuthenticationBox
) )
#endif #endif
isReportSuccess = true isReportSuccess = true

View File

@ -11,7 +11,7 @@ import Combine
extension APIService { extension APIService {
func report( public func report(
query: Mastodon.API.Reports.FileReportQuery, query: Mastodon.API.Reports.FileReportQuery,
authenticationBox: MastodonAuthenticationBox authenticationBox: MastodonAuthenticationBox
) async throws -> Mastodon.Response.Content<Bool> { ) async throws -> Mastodon.Response.Content<Bool> {