fix: Remove filters from Firefish capabilities (#459)

Firefish doesn't support the filters API, so remove filters from the
list of capabilities.

Fixes #248
This commit is contained in:
Nik Clayton 2024-02-20 14:41:48 +01:00 committed by GitHub
parent 8fdb15893a
commit 13cfa1a15d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 5 deletions

View File

@ -271,9 +271,12 @@ data class Server(
// GoToSocial can't filter, https://github.com/superseriousbusiness/gotosocial/issues/1472 // GoToSocial can't filter, https://github.com/superseriousbusiness/gotosocial/issues/1472
GOTOSOCIAL -> { } GOTOSOCIAL -> { }
// FireFish can't filter (conversation in the Firefish dev. chat )
FIREFISH -> { }
// Everything else. Assume server side filtering and no translation. This may be an // Everything else. Assume server side filtering and no translation. This may be an
// incorrect assumption. // incorrect assumption.
AKKOMA, FEDIBIRD, FIREFISH, FRIENDICA, GLITCH, HOMETOWN, ICESHRIMP, PIXELFED, PLEROMA, SHARKEY, UNKNOWN -> { AKKOMA, FEDIBIRD, FRIENDICA, GLITCH, HOMETOWN, ICESHRIMP, PIXELFED, PLEROMA, SHARKEY, UNKNOWN -> {
c[ORG_JOINMASTODON_FILTERS_SERVER] = "1.0.0".toVersion() c[ORG_JOINMASTODON_FILTERS_SERVER] = "1.0.0".toVersion()
} }
} }

View File

@ -230,7 +230,7 @@ class ServerTest(
), ),
arrayOf( arrayOf(
Triple( Triple(
"Firefish can filter", "Firefish can't filter",
NodeInfo.Software("firefish", "1.1.0-dev29-hf1"), NodeInfo.Software("firefish", "1.1.0-dev29-hf1"),
defaultInstance, defaultInstance,
), ),
@ -238,9 +238,7 @@ class ServerTest(
Server( Server(
kind = FIREFISH, kind = FIREFISH,
version = "1.1.0-dev29-hf1".toVersion(), version = "1.1.0-dev29-hf1".toVersion(),
capabilities = mapOf( capabilities = emptyMap(),
ORG_JOINMASTODON_FILTERS_SERVER to "1.0.0".toVersion(),
),
), ),
), ),
), ),