mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-03-26 17:52:29 +01:00
Adds a k tag to reactions
This commit is contained in:
parent
23fad2a818
commit
7b55b69c12
@ -33,7 +33,11 @@ class ReactionEvent(
|
||||
}
|
||||
|
||||
fun create(content: String, originalNote: EventInterface, signer: NostrSigner, createdAt: Long = TimeUtils.now(), onReady: (ReactionEvent) -> Unit) {
|
||||
var tags = listOf(arrayOf("e", originalNote.id()), arrayOf("p", originalNote.pubKey()))
|
||||
var tags = listOf(
|
||||
arrayOf("e", originalNote.id()),
|
||||
arrayOf("p", originalNote.pubKey()),
|
||||
arrayOf("k", originalNote.kind().toString())
|
||||
)
|
||||
if (originalNote is AddressableEvent) {
|
||||
tags = tags + listOf(arrayOf("a", originalNote.address().toTag()))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user