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 -> { }
// FireFish can't filter (conversation in the Firefish dev. chat )
FIREFISH -> { }
// Everything else. Assume server side filtering and no translation. This may be an
// 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()
}
}

View File

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