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

This commit is contained in:
William Casarin
2023-03-25 07:54:04 -06:00
parent 61fddf800e
commit 159d0fa2b5
3 changed files with 19 additions and 2 deletions

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