Don't render @note link if there is only one
This commit is contained in:
1 parent
61fddf800e
commit
159d0fa2b5
3 files changed
+19
-2
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user