From dd2efe97955449d4f1cd336ef4e51e62467437b0 Mon Sep 17 00:00:00 2001 From: Nik Clayton Date: Tue, 9 Apr 2024 16:23:04 +0200 Subject: [PATCH] feat: Disable filters for accounts on servers running Sharkey (#610) Fixes #600. --- .../src/main/kotlin/app/pachli/core/network/Server.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/network/src/main/kotlin/app/pachli/core/network/Server.kt b/core/network/src/main/kotlin/app/pachli/core/network/Server.kt index d1efebbf3..ad6687d90 100644 --- a/core/network/src/main/kotlin/app/pachli/core/network/Server.kt +++ b/core/network/src/main/kotlin/app/pachli/core/network/Server.kt @@ -284,9 +284,12 @@ data class Server( // FireFish can't filter (conversation in the Firefish dev. chat ) FIREFISH -> { } + // Sharkey can't filter, https://activitypub.software/TransFem-org/Sharkey/-/issues/492 + SHARKEY -> { } + // Everything else. Assume server side filtering and no translation. This may be an // incorrect assumption. - AKKOMA, FEDIBIRD, FRIENDICA, GLITCH, HOMETOWN, ICESHRIMP, PIXELFED, PLEROMA, SHARKEY, UNKNOWN -> { + AKKOMA, FEDIBIRD, FRIENDICA, GLITCH, HOMETOWN, ICESHRIMP, PIXELFED, PLEROMA, UNKNOWN -> { c[ORG_JOINMASTODON_FILTERS_SERVER] = "1.0.0".toVersion() } }