Skip to content

Commit 55b3613

Browse files
committed
Fix build error
1 parent 02e1461 commit 55b3613

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

MastodonSDK/Sources/MastodonUI/Protocol/StatusCompatible.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ public protocol StatusCompatible {
88
var attachments: [MastodonAttachment] { get }
99
var isMediaSensitive: Bool { get }
1010
var isSensitiveToggled: Bool { get }
11+
var language: String? { get }
1112
}
1213

1314
extension Status: StatusCompatible {}
@@ -24,4 +25,8 @@ extension StatusEdit: StatusCompatible {
2425
public var isSensitiveToggled: Bool {
2526
true
2627
}
28+
29+
public var language: String? {
30+
status?.language
31+
}
2732
}

0 commit comments

Comments
 (0)