mirror of
https://github.com/mastodon/mastodon-ios.git
synced 2024-12-12 08:36:02 +01:00
0c224f47df
Co-authored-by: Marcus Kida <marcus.kida@bearologics.com> Co-authored-by: Jed Fox <git@jedfox.com>
28 lines
567 B
Swift
28 lines
567 B
Swift
// Copyright © 2023 Mastodon gGmbH. All rights reserved.
|
|
|
|
import Foundation
|
|
import CoreDataStack
|
|
|
|
public protocol StatusCompatible {
|
|
var reblog: Status? { get }
|
|
var attachments: [MastodonAttachment] { get }
|
|
var isMediaSensitive: Bool { get }
|
|
var isSensitiveToggled: Bool { get }
|
|
}
|
|
|
|
extension Status: StatusCompatible {}
|
|
|
|
extension StatusEdit: StatusCompatible {
|
|
public var reblog: Status? {
|
|
nil
|
|
}
|
|
|
|
public var isMediaSensitive: Bool {
|
|
sensitive
|
|
}
|
|
|
|
public var isSensitiveToggled: Bool {
|
|
true
|
|
}
|
|
}
|