deactivate write for search relays (they are read only)

This commit is contained in:
Vitor Pamplona
2024-05-30 17:10:56 -04:00
parent 7c65a93896
commit 9d190f93bb
@@ -261,7 +261,7 @@ class Account(
mappedRelaySet =
mappedRelaySet.map {
if (searchRelaySet.contains(it.url) == true) {
Relay(it.url, true, true, it.activeTypes + FeedType.PRIVATE_DMS)
Relay(it.url, true, false, it.activeTypes + FeedType.PRIVATE_DMS)
} else {
it
}
@@ -269,7 +269,7 @@ class Account(
searchRelaySet.forEach { newUrl ->
if (mappedRelaySet.filter { it.url == newUrl }.isEmpty()) {
mappedRelaySet = mappedRelaySet + Relay(newUrl, true, true, setOf(FeedType.SEARCH))
mappedRelaySet = mappedRelaySet + Relay(newUrl, true, false, setOf(FeedType.SEARCH))
}
}