mirror of
https://github.com/mastodon/mastodon-ios
synced 2025-04-11 22:58:02 +02:00
27 lines
482 B
Swift
27 lines
482 B
Swift
//
|
|
// DataSourceFacade+Model.swift
|
|
// Mastodon
|
|
//
|
|
// Created by MainasuK on 2022-1-13.
|
|
//
|
|
|
|
import Foundation
|
|
import CoreData
|
|
import CoreDataStack
|
|
import MastodonUI
|
|
import MastodonSDK
|
|
|
|
extension DataSourceFacade {
|
|
static func status(
|
|
status: MastodonStatus,
|
|
target: StatusTarget
|
|
) -> MastodonStatus {
|
|
switch target {
|
|
case .status:
|
|
return status.reblog ?? status
|
|
case .reblog:
|
|
return status
|
|
}
|
|
}
|
|
}
|