mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-11-10 14:27:29 +01:00
Adds support for the q tag together with the support for the mention marker.
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user