18 lines
549 B
Swift
18 lines
549 B
Swift
// Copyright © 2023 Mastodon gGmbH. All rights reserved.
|
|
|
|
import Foundation
|
|
import MastodonCore
|
|
import MastodonSDK
|
|
import CoreDataStack
|
|
|
|
extension DataSourceFacade {
|
|
public static func getEditHistory(
|
|
forStatus status: Status,
|
|
provider: NeedsDependency & AuthContextProvider
|
|
) async throws -> [Mastodon.Entity.StatusEdit] {
|
|
let reponse = try await provider.context.apiService.getHistory(forStatusID: status.id, authenticationBox: provider.authContext.mastodonAuthenticationBox)
|
|
|
|
return reponse.value
|
|
}
|
|
}
|