We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02e1461 commit 55b3613Copy full SHA for 55b3613
MastodonSDK/Sources/MastodonUI/Protocol/StatusCompatible.swift
@@ -8,6 +8,7 @@ public protocol StatusCompatible {
8
var attachments: [MastodonAttachment] { get }
9
var isMediaSensitive: Bool { get }
10
var isSensitiveToggled: Bool { get }
11
+ var language: String? { get }
12
}
13
14
extension Status: StatusCompatible {}
@@ -24,4 +25,8 @@ extension StatusEdit: StatusCompatible {
24
25
public var isSensitiveToggled: Bool {
26
true
27
28
+
29
+ public var language: String? {
30
+ status?.language
31
+ }
32
0 commit comments