mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-25 21:26:53 +02:00
Adds NIP-22 as replies to Interactive Stories.
This commit is contained in:
@@ -106,6 +106,11 @@ class CommentEvent(
|
||||
) {
|
||||
val tags = mutableListOf<Array<String>>()
|
||||
|
||||
if (replyingTo.event is AddressableEvent) {
|
||||
tags.add(removeTrailingNullsAndEmptyOthers("A", replyingTo.event.addressTag(), replyingTo.relay))
|
||||
tags.add(removeTrailingNullsAndEmptyOthers("a", replyingTo.event.addressTag(), replyingTo.relay))
|
||||
}
|
||||
|
||||
tags.add(removeTrailingNullsAndEmptyOthers("E", replyingTo.event.id, replyingTo.relay, replyingTo.event.pubKey))
|
||||
tags.add(arrayOf("K", "${replyingTo.event.kind}"))
|
||||
|
||||
|
@@ -32,7 +32,8 @@ class InteractiveStoryPrologueEvent(
|
||||
tags: Array<Array<String>>,
|
||||
content: String,
|
||||
sig: HexKey,
|
||||
) : InteractiveStoryBaseEvent(id, pubKey, createdAt, KIND, tags, content, sig) {
|
||||
) : InteractiveStoryBaseEvent(id, pubKey, createdAt, KIND, tags, content, sig),
|
||||
RootScope {
|
||||
companion object {
|
||||
const val KIND = 30296
|
||||
const val ALT = "The prologue of an interative story called "
|
||||
|
@@ -32,7 +32,8 @@ class InteractiveStorySceneEvent(
|
||||
tags: Array<Array<String>>,
|
||||
content: String,
|
||||
sig: HexKey,
|
||||
) : InteractiveStoryBaseEvent(id, pubKey, createdAt, KIND, tags, content, sig) {
|
||||
) : InteractiveStoryBaseEvent(id, pubKey, createdAt, KIND, tags, content, sig),
|
||||
RootScope {
|
||||
companion object {
|
||||
const val KIND = 30297
|
||||
const val ALT = "A scene of an interative story called "
|
||||
|
Reference in New Issue
Block a user