Adds support for the q tag together with the support for the mention marker.

This commit is contained in:
Vitor Pamplona
2024-02-25 11:40:39 -05:00
parent 6afd9a0191
commit 5ad86e5604
2 changed files with 6 additions and 1 deletions

View File

@@ -134,7 +134,7 @@ object NostrSingleEventDataSource : NostrDataSource("SingleEventFeed") {
LnZapEvent.KIND, LnZapEvent.KIND,
PollNoteEvent.KIND, PollNoteEvent.KIND,
), ),
tags = mapOf("e" to it.map { it.idHex }), tags = mapOf("e" to it.map { it.idHex }, "q" to it.map { it.idHex }),
since = findMinimumEOSEs(it), since = findMinimumEOSEs(it),
// Max amount of "replies" to download on a specific event. // Max amount of "replies" to download on a specific event.
limit = 1000, limit = 1000,

View File

@@ -79,6 +79,11 @@ class TextNoteEvent(
tags.add(arrayOf("p", it)) tags.add(arrayOf("p", it))
} }
} }
replyTos?.forEach {
if (it in directMentions) {
tags.add(arrayOf("q", it))
}
}
addresses addresses
?.map { it.toTag() } ?.map { it.toTag() }
?.let { ?.let {