Kurdtvs-Live-Kurdish-TV-Kur.../Mastodon/Protocol/Provider/DataSourceFacade+Reblog.swift

27 lines
688 B
Swift

//
// DataSourceFacade+Reblog.swift
// Mastodon
//
// Created by MainasuK on 2022-1-21.
//
import UIKit
import CoreDataStack
import MastodonUI
extension DataSourceFacade {
static func responseToStatusReblogAction(
provider: DataSourceProvider,
status: ManagedObjectRecord<Status>,
authenticationBox: MastodonAuthenticationBox
) async throws {
let selectionFeedbackGenerator = UISelectionFeedbackGenerator()
await selectionFeedbackGenerator.selectionChanged()
_ = try await provider.context.apiService.reblog(
record: status,
authenticationBox: authenticationBox
)
} // end func
}