highlight: fixes and improvements
This patch allows highlights to be included in posts as well as removes context when creating a highlight. Highlights now route as the root and selecting the highlight in root routes to the highlighted event. Signed-off-by: ericholguin <ericholguin@apache.org>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user