hashtags working

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2022-05-09 11:43:18 -07:00
parent 6ac4214be7
commit cac139fff1
6 changed files with 78 additions and 13 deletions

View File

@@ -10,6 +10,7 @@ import Foundation
enum PostBlock {
case text(String)
case ref(ReferencedId)
case hashtag(String)
var is_text: Bool {
if case .text = self {
@@ -18,6 +19,13 @@ enum PostBlock {
return false
}
var is_hashtag: Bool {
if case .hashtag = self {
return true
}
return false
}
var is_ref: Bool {
if case .ref = self {
return true