sforkowany z mirror/soapbox
Make quote posting work on Akkoma
rodzic
4e3b398209
commit
0ae57236c7
|
@ -197,7 +197,7 @@ describe('normalizeInstance()', () => {
|
|||
const instance = require('soapbox/__fixtures__/akkoma-instance.json');
|
||||
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', '');
|
||||
|
||||
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 {
|
||||
return instance;
|
||||
}
|
||||
|
|
|
@ -504,7 +504,7 @@ const getInstanceFeatures = (instance: Instance) => {
|
|||
* @see POST /api/v1/statuses
|
||||
*/
|
||||
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,
|
||||
]),
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue