mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-03-29 11:11:44 +01:00
Adds context to highlight events
This commit is contained in:
parent
1f9fbb0c86
commit
ddb1d7ff82
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user