mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-29 12:02:45 +02:00
Uses relays where the event was seen as a source of reactions and replies
This commit is contained in:
@@ -189,15 +189,15 @@ open class Note(
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun relayUrls(): List<NormalizedRelayUrl> {
|
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> {
|
fun relayUrlsForReactions(): List<NormalizedRelayUrl> {
|
||||||
val authorRelay = author?.inboxRelays()?.ifEmpty { null }
|
val authorRelay = author?.inboxRelays() ?: emptyList()
|
||||||
|
|
||||||
return authorRelay ?: relays
|
return authorRelay + relays
|
||||||
}
|
}
|
||||||
|
|
||||||
fun relayHintUrl(): NormalizedRelayUrl? {
|
fun relayHintUrl(): NormalizedRelayUrl? {
|
||||||
|
Reference in New Issue
Block a user