Update features.ts for Takahē
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
02509cb40d
commit
c6e5f746da
2 changed files with 8 additions and 2 deletions
|
@ -112,7 +112,7 @@ const fixAkkoma = (instance: ImmutableMap<string, any>) => {
|
|||
}
|
||||
};
|
||||
|
||||
/** Set Takahe version to a Pleroma-like string */
|
||||
/** Set Takahē version to a Pleroma-like string */
|
||||
const fixTakahe = (instance: ImmutableMap<string, any>) => {
|
||||
const version: string = instance.get('version', '');
|
||||
|
||||
|
|
|
@ -123,6 +123,7 @@ const getInstanceFeatures = (instance: Instance) => {
|
|||
accountLookup: any([
|
||||
v.software === MASTODON && gte(v.compatVersion, '3.4.0'),
|
||||
v.software === PLEROMA && gte(v.version, '2.4.50'),
|
||||
v.software === TAKAHE && gte(v.version, '0.6.1'),
|
||||
v.software === TRUTHSOCIAL,
|
||||
]),
|
||||
|
||||
|
@ -386,6 +387,7 @@ const getInstanceFeatures = (instance: Instance) => {
|
|||
/** Whether the accounts who favourited or emoji-reacted to a status can be viewed through the API. */
|
||||
exposableReactions: any([
|
||||
v.software === MASTODON,
|
||||
v.software === TAKAHE && gte(v.version, '0.6.1'),
|
||||
v.software === TRUTHSOCIAL,
|
||||
features.includes('exposable_reactions'),
|
||||
]),
|
||||
|
@ -394,7 +396,10 @@ const getInstanceFeatures = (instance: Instance) => {
|
|||
* Can see accounts' followers you know
|
||||
* @see GET /api/v1/accounts/familiar_followers
|
||||
*/
|
||||
familiarFollowers: v.software === MASTODON && gte(v.version, '3.5.0'),
|
||||
familiarFollowers: any([
|
||||
v.software === MASTODON && gte(v.version, '3.5.0'),
|
||||
v.software === TAKAHE,
|
||||
]),
|
||||
|
||||
/** Whether the instance federates. */
|
||||
federating: federation.get('enabled', true) === true, // Assume true unless explicitly false
|
||||
|
@ -524,6 +529,7 @@ const getInstanceFeatures = (instance: Instance) => {
|
|||
notificationsIncludeTypes: any([
|
||||
v.software === MASTODON && gte(v.compatVersion, '3.5.0'),
|
||||
v.software === PLEROMA && gte(v.version, '2.4.50'),
|
||||
v.software === TAKAHE && gte(v.version, '0.6.2'),
|
||||
]),
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue