From da01241874841f3fa60d3c03a2d7ef11784689f6 Mon Sep 17 00:00:00 2001 From: Nik Clayton Date: Wed, 19 Jun 2024 14:38:01 +0200 Subject: [PATCH] feat: Support server filters in GoToSocial 0.16.0 (#765) --- .../src/main/kotlin/app/pachli/core/network/Server.kt | 6 +++++- 1 file changed, 5 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 a2904452b..af585db96 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 @@ -270,11 +270,15 @@ data class Server( } } - // 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() + // Implemented in https://github.com/superseriousbusiness/gotosocial/pull/2936 + v >= "0.16.0".toVersion() -> { + c[ORG_JOINMASTODON_FILTERS_CLIENT] = "1.1.0".toVersion() + c[ORG_JOINMASTODON_FILTERS_SERVER] = "1.0.0".toVersion() + } } }