mastodon-ios/Mastodon/Protocol/Provider/DataSourceFacade+Model.swift

27 lines
482 B
Swift
Raw Normal View History

//
// DataSourceFacade+Model.swift
// Mastodon
//
// Created by MainasuK on 2022-1-13.
//
import Foundation
import CoreData
import CoreDataStack
2022-01-28 05:09:28 +01:00
import MastodonUI
2023-11-22 12:32:04 +01:00
import MastodonSDK
extension DataSourceFacade {
static func status(
2023-11-22 12:32:04 +01:00
status: MastodonStatus,
target: StatusTarget
) -> MastodonStatus {
2023-11-22 12:32:04 +01:00
switch target {
case .status:
return status.reblog ?? status
case .reblog:
return status
}
}
}