Make quote posting work on Akkoma
This commit is contained in:
parent
4e3b398209
commit
0ae57236c7
3 changed files with 3 additions and 3 deletions
|
@ -197,7 +197,7 @@ describe('normalizeInstance()', () => {
|
||||||
const instance = require('soapbox/__fixtures__/akkoma-instance.json');
|
const instance = require('soapbox/__fixtures__/akkoma-instance.json');
|
||||||
const result = normalizeInstance(instance);
|
const result = normalizeInstance(instance);
|
||||||
|
|
||||||
expect(result.version).toEqual('2.7.2 (compatible; Pleroma 2.4.5+akkoma)');
|
expect(result.version).toEqual('2.7.2 (compatible; Pleroma 2.4.50+akkoma)');
|
||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -103,7 +103,7 @@ const fixAkkoma = (instance: ImmutableMap<string, any>) => {
|
||||||
const version: string = instance.get('version', '');
|
const version: string = instance.get('version', '');
|
||||||
|
|
||||||
if (version.includes('Akkoma')) {
|
if (version.includes('Akkoma')) {
|
||||||
return instance.set('version', '2.7.2 (compatible; Pleroma 2.4.5+akkoma)');
|
return instance.set('version', '2.7.2 (compatible; Pleroma 2.4.50+akkoma)');
|
||||||
} else {
|
} else {
|
||||||
return instance;
|
return instance;
|
||||||
}
|
}
|
||||||
|
|
|
@ -504,7 +504,7 @@ const getInstanceFeatures = (instance: Instance) => {
|
||||||
* @see POST /api/v1/statuses
|
* @see POST /api/v1/statuses
|
||||||
*/
|
*/
|
||||||
quotePosts: any([
|
quotePosts: any([
|
||||||
v.software === PLEROMA && v.build === SOAPBOX && gte(v.version, '2.4.50'),
|
v.software === PLEROMA && [SOAPBOX, AKKOMA].includes(v.build!) && gte(v.version, '2.4.50'),
|
||||||
instance.feature_quote === true,
|
instance.feature_quote === true,
|
||||||
]),
|
]),
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue