From e93e4ffb5358e9326e6778aa57d40ace61871871 Mon Sep 17 00:00:00 2001 From: Nik Clayton Date: Mon, 11 Mar 2024 23:14:57 +0100 Subject: [PATCH] feat: Support client filters in GoToSocial 0.15.0 (#523) --- .../src/main/kotlin/app/pachli/core/network/Server.kt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 ba05ac6f4..d1efebbf3 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 @@ -273,8 +273,13 @@ data class Server( } } - // GoToSocial can't filter, https://github.com/superseriousbusiness/gotosocial/issues/1472 - GOTOSOCIAL -> { } + // GoToSocial has client-side filtering, not server-side + GOTOSOCIAL -> { + when { + // Implemented in https://github.com/superseriousbusiness/gotosocial/pull/2594 + v >= "0.15.0".toVersion() -> c[ORG_JOINMASTODON_FILTERS_CLIENT] = "1.1.0".toVersion() + } + } // FireFish can't filter (conversation in the Firefish dev. chat ) FIREFISH -> { }