Merge branch 'takahe-features' into 'develop'

Update features.ts for Takahē

See merge request soapbox-pub/soapbox!2116
renovate/emoji-datasource-14.x
marcin mikołajczak 2023-01-03 23:02:50 +00:00
commit 1412385382
2 zmienionych plików z 8 dodań i 2 usunięć

Wyświetl plik

@ -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', '');

Wyświetl plik

@ -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'),
]),
/**