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,
|
||||
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),
|
||||
// Max amount of "replies" to download on a specific event.
|
||||
limit = 1000,
|
||||
|
||||
@@ -79,6 +79,11 @@ class TextNoteEvent(
|
||||
tags.add(arrayOf("p", it))
|
||||
}
|
||||
}
|
||||
replyTos?.forEach {
|
||||
if (it in directMentions) {
|
||||
tags.add(arrayOf("q", it))
|
||||
}
|
||||
}
|
||||
addresses
|
||||
?.map { it.toTag() }
|
||||
?.let {
|
||||
|
||||
Reference in New Issue
Block a user