Node.js based forum software built for the modern web
fix: auto-enable post queue as default, adjust tests to compensate
Julian Lam9390ccb6b07c
diff --git a/install/data/defaults.json b/install/data/defaults.jsonindex 6c7142f1b1..2f733961ea 100644--- a/install/data/defaults.json+++ b/install/data/defaults.json@@ -24,8 +24,8 @@"newbieChatMessageDelay": 120000,"notificationSendDelay": 60,"newbieReputationThreshold": 3,- "postQueue": 0,- "postQueueReputationThreshold": 0,+ "postQueue": 1,+ "postQueueReputationThreshold": 1,"groupsExemptFromPostQueue": ["administrators", "Global Moderators"],"groupsExemptFromNewUserRestrictions": ["administrators", "Global Moderators"],"groupsExemptFromMaintenanceMode": ["administrators", "Global Moderators"],diff --git a/test/mocks/databasemock.js b/test/mocks/databasemock.jsindex 460a93c416..a2c55f8d9e 100644--- a/test/mocks/databasemock.js+++ b/test/mocks/databasemock.js@@ -194,6 +194,7 @@ async function setupMockDefaults() {meta.config.newbiePostDelay = 0;meta.config.autoDetectLang = 0;meta.config.activitypubProbeTimeout = 30000;+ meta.config.postQueue = 0;require('../../src/groups').cache.reset();require('../../src/posts/cache').getOrCreate().reset();