Skip to content

Commit

Permalink
Uses NIP-22 to reply to Highlights
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorpamplona committed Mar 6, 2025
1 parent fa9ff0c commit 52e67c9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import com.vitorpamplona.quartz.nip01Core.tags.events.firstTaggedEvent
import com.vitorpamplona.quartz.nip01Core.tags.people.firstTaggedUser
import com.vitorpamplona.quartz.nip01Core.tags.references.ReferenceTag
import com.vitorpamplona.quartz.nip10Notes.BaseThreadedEvent
import com.vitorpamplona.quartz.nip22Comments.RootScope
import com.vitorpamplona.quartz.nip31Alts.AltTag
import com.vitorpamplona.quartz.nip84Highlights.tags.ContextTag
import com.vitorpamplona.quartz.utils.TimeUtils
Expand All @@ -41,7 +42,8 @@ class HighlightEvent(
tags: Array<Array<String>>,
content: String,
sig: HexKey,
) : BaseThreadedEvent(id, pubKey, createdAt, KIND, tags, content, sig) {
) : BaseThreadedEvent(id, pubKey, createdAt, KIND, tags, content, sig),
RootScope {
fun inUrl() = tags.firstNotNullOfOrNull(ReferenceTag::parse)

fun author() = firstTaggedUser()
Expand Down

0 comments on commit 52e67c9

Please sign in to comment.