0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Removed old activitypub flag

- we have another flag with a different casing and that's the one that
  is used, so `activitypub` can be deleted
This commit is contained in:
Daniel Lockyer 2024-11-28 09:17:00 +01:00 committed by Daniel Lockyer
parent 3aefb8951c
commit cd7f8fbba4
4 changed files with 4 additions and 6 deletions

View file

@ -27,7 +27,6 @@ const GA_FEATURES = [
// input for the "labs" setting value
const BETA_FEATURES = [
'additionalPaymentMethods',
'activitypub',
'stripeAutomaticTax',
'webmentions',
'editorExcerpt',

View file

@ -11,7 +11,6 @@ Object {
"labs": Object {
"ActivityPub": true,
"NestPlayground": true,
"activitypub": true,
"additionalPaymentMethods": true,
"adminXDemo": true,
"announcementBar": true,

View file

@ -824,7 +824,7 @@ describe('Importer', function () {
exportData.data.settings[0] = testUtils.DataGenerator.forKnex.createSetting({
key: 'labs',
value: JSON.stringify({activitypub: true})
value: JSON.stringify({additionalPaymentMethods: true})
});
return dataImporter.doImport(exportData, importOptions)
@ -835,7 +835,7 @@ describe('Importer', function () {
.then(function (result) {
should.equal(result.attributes.key, 'labs');
should.equal(result.attributes.group, 'labs');
should.equal(result.attributes.value, '{"activitypub":true}');
should.equal(result.attributes.value, '{"additionalPaymentMethods":true}');
});
});

View file

@ -79,11 +79,11 @@ describe('Settings API', function () {
it('Can edit only allowed labs keys', async function () {
await checkCanEdit('labs',
JSON.stringify({
activitypub: true,
additionalPaymentMethods: true,
gibberish: true
}),
{
activitypub: true
additionalPaymentMethods: true
}
);
});