Skip to content

Commit

Permalink
Fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
j-f1 committed Mar 28, 2023
1 parent 5aebb58 commit 14fd773
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ public protocol StatusCompatible {
var attachments: [MastodonAttachment] { get }
var isMediaSensitive: Bool { get }
var isSensitiveToggled: Bool { get }
var language: String? { get }
}

extension Status: StatusCompatible {}
Expand All @@ -24,4 +25,8 @@ extension StatusEdit: StatusCompatible {
public var isSensitiveToggled: Bool {
true
}

public var language: String? {
status?.language
}
}

0 comments on commit 14fd773

Please sign in to comment.