Merge branch 'takahe-features' into 'develop'
Update features.ts for Takahē See merge request soapbox-pub/soapbox!2116
This commit is contained in:
commit
1412385382
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 fixTakahe = (instance: ImmutableMap<string, any>) => {
|
||||||
const version: string = instance.get('version', '');
|
const version: string = instance.get('version', '');
|
||||||
|
|
||||||
|
|
|
@ -123,6 +123,7 @@ const getInstanceFeatures = (instance: Instance) => {
|
||||||
accountLookup: any([
|
accountLookup: any([
|
||||||
v.software === MASTODON && gte(v.compatVersion, '3.4.0'),
|
v.software === MASTODON && gte(v.compatVersion, '3.4.0'),
|
||||||
v.software === PLEROMA && gte(v.version, '2.4.50'),
|
v.software === PLEROMA && gte(v.version, '2.4.50'),
|
||||||
|
v.software === TAKAHE && gte(v.version, '0.6.1'),
|
||||||
v.software === TRUTHSOCIAL,
|
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. */
|
/** Whether the accounts who favourited or emoji-reacted to a status can be viewed through the API. */
|
||||||
exposableReactions: any([
|
exposableReactions: any([
|
||||||
v.software === MASTODON,
|
v.software === MASTODON,
|
||||||
|
v.software === TAKAHE && gte(v.version, '0.6.1'),
|
||||||
v.software === TRUTHSOCIAL,
|
v.software === TRUTHSOCIAL,
|
||||||
features.includes('exposable_reactions'),
|
features.includes('exposable_reactions'),
|
||||||
]),
|
]),
|
||||||
|
@ -394,7 +396,10 @@ const getInstanceFeatures = (instance: Instance) => {
|
||||||
* Can see accounts' followers you know
|
* Can see accounts' followers you know
|
||||||
* @see GET /api/v1/accounts/familiar_followers
|
* @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. */
|
/** Whether the instance federates. */
|
||||||
federating: federation.get('enabled', true) === true, // Assume true unless explicitly false
|
federating: federation.get('enabled', true) === true, // Assume true unless explicitly false
|
||||||
|
@ -524,6 +529,7 @@ const getInstanceFeatures = (instance: Instance) => {
|
||||||
notificationsIncludeTypes: any([
|
notificationsIncludeTypes: any([
|
||||||
v.software === MASTODON && gte(v.compatVersion, '3.5.0'),
|
v.software === MASTODON && gte(v.compatVersion, '3.5.0'),
|
||||||
v.software === PLEROMA && gte(v.version, '2.4.50'),
|
v.software === PLEROMA && gte(v.version, '2.4.50'),
|
||||||
|
v.software === TAKAHE && gte(v.version, '0.6.2'),
|
||||||
]),
|
]),
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue