feat: Support server filters in GoToSocial 0.16.0 (#765)

This commit is contained in:
Nik Clayton 2024-06-19 14:38:01 +02:00 committed by GitHub
parent ce938239e8
commit da01241874
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -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()
}
}
}