Don't render @note link if there is only one

This commit is contained in:
William Casarin committed 2023-03-25 07:54:04 -06:00
1 parent 61fddf800e
commit 159d0fa2b5
3 files changed
+19 -2

No files matched your search

+8
View File
@@ -94,6 +94,14 @@ enum Block {
return nil
}
var is_note_mention: Bool {
guard case .mention(let mention) = self else {
return false
}
return mention.type == .event
}
var is_mention: Bool {
if case .mention = self {
return true