pl-api: enable followed tags on pixelfed

Signed-off-by: mkljczk <git@mkljczk.pl>
This commit is contained in:
mkljczk
2024-12-25 15:39:16 +01:00
parent d9f4b8d594
commit 98bdd79da5

View File

@ -620,6 +620,19 @@ const getFeatures = (instance: Instance) => {
*/
// followAccountLanguages: any([]),
/**
* Ability to list followed hashtags.
* @see GET /api/v1/followed_tags
*/
followedHashtagsList: any([
v.software === GOTOSOCIAL && gte(v.version, '0.17.0'),
v.software === MASTODON && gte(v.compatVersion, '4.1.0'),
v.software === PIXELFED,
v.software === PLEROMA && v.build === AKKOMA,
v.software === PLEROMA && v.build === PL,
v.software === TAKAHE && gte(v.version, '0.9.0'),
]),
/**
* Ability to follow hashtags.
* @see POST /api/v1/tags/:name/follow
@ -628,6 +641,7 @@ const getFeatures = (instance: Instance) => {
followHashtags: any([
v.software === GOTOSOCIAL && gte(v.version, '0.17.0'),
v.software === MASTODON && gte(v.compatVersion, '4.0.0'),
v.software === PIXELFED,
v.software === PLEROMA && v.build === AKKOMA,
v.software === PLEROMA && v.build === PL,
v.software === TAKAHE && gte(v.version, '0.9.0'),
@ -646,18 +660,6 @@ const getFeatures = (instance: Instance) => {
v.software === TOKI,
]),
/**
* Ability to list followed hashtags.
* @see GET /api/v1/followed_tags
*/
followedHashtagsList: any([
v.software === GOTOSOCIAL && gte(v.version, '0.17.0'),
v.software === MASTODON && gte(v.compatVersion, '4.1.0'),
v.software === PLEROMA && v.build === AKKOMA,
v.software === PLEROMA && v.build === PL,
v.software === TAKAHE && gte(v.version, '0.9.0'),
]),
/**
* Whether client settings can be retrieved from the API.
* @see GET /api/pleroma/frontend_configurations