Merge pull request #2330 from ericholguin/highlight-fixes

highlight: fixes and improvements
This commit is contained in:
Daniel D’Aquino
2024-07-19 10:50:30 -07:00
committed by GitHub
7 changed files with 29 additions and 32 deletions

View File

@@ -341,7 +341,14 @@ extension NdbNote {
}
func thread_reply() -> ThreadReply? {
ThreadReply(tags: self.tags)
if self.known_kind != .highlight {
return ThreadReply(tags: self.tags)
}
return nil
}
func highlighted_note_id() -> NoteId? {
return ThreadReply(tags: self.tags)?.reply.note_id
}
func get_content(_ keypair: Keypair) -> String {