Uses relays where the event was seen as a source of reactions and replies

This commit is contained in:
Vitor Pamplona
2025-08-14 16:20:53 -04:00
parent 97bad5707f
commit 38827a4db6

View File

@@ -189,15 +189,15 @@ open class Note(
}
fun relayUrls(): List<NormalizedRelayUrl> {
val authorRelay = author?.relayHints()?.ifEmpty { null }
val authorRelay = author?.relayHints() ?: emptyList()
return authorRelay ?: relays
return authorRelay + relays
}
fun relayUrlsForReactions(): List<NormalizedRelayUrl> {
val authorRelay = author?.inboxRelays()?.ifEmpty { null }
val authorRelay = author?.inboxRelays() ?: emptyList()
return authorRelay ?: relays
return authorRelay + relays
}
fun relayHintUrl(): NormalizedRelayUrl? {