mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-19 22:42:02 +02:00
Adds context to highlight events
This commit is contained in:
@@ -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?,
|
||||
|
@@ -40,6 +40,8 @@ class HighlightEvent(
|
||||
|
||||
fun quote() = content
|
||||
|
||||
fun context() = firstTagFor("context")
|
||||
|
||||
fun inPost() = firstTaggedAddress()
|
||||
|
||||
fun inPostVersion() = firstTaggedEvent()
|
||||
|
Reference in New Issue
Block a user