Adds context to highlight events

This commit is contained in:
Vitor Pamplona 2024-08-13 15:08:32 -04:00
parent 1f9fbb0c86
commit ddb1d7ff82
2 changed files with 4 additions and 0 deletions

View File

@ -75,6 +75,7 @@ fun RenderHighlight(
DisplayHighlight(
highlight = noteEvent.quote(),
context = noteEvent.context(),
authorHex = noteEvent.author(),
url = noteEvent.inUrl(),
postAddress = noteEvent.inPost(),
@ -92,6 +93,7 @@ fun RenderHighlight(
@Composable
fun DisplayHighlight(
highlight: String,
context: String?,
authorHex: String?,
url: String?,
postAddress: ATag?,

View File

@ -40,6 +40,8 @@ class HighlightEvent(
fun quote() = content
fun context() = firstTagFor("context")
fun inPost() = firstTaggedAddress()
fun inPostVersion() = firstTaggedEvent()