serverside components of instancePurpose flag

pull/1/head
ansuz 3 years ago
parent 0b8239241b
commit 9027409ce5

@ -173,6 +173,9 @@ commands.SET_SUPPORT_MAILBOX = makeGenericSetter('supportMailbox', function (arg
return args_isString(args) && Core.isValidPublicKey(args[0]); return args_isString(args) && Core.isValidPublicKey(args[0]);
}); });
// CryptPad_AsyncStore.rpc.send('ADMIN', [ 'ADMIN_DECREE', ['SET_INSTANCE_PURPOSE', ["development"]]], console.log)
commands.SET_INSTANCE_PURPOSE = makeGenericSetter('instancePurpose', args_isString);
// Maintenance: Empty string or an object with a start and end time // Maintenance: Empty string or an object with a start and end time
var isNumber = function (value) { var isNumber = function (value) {
return typeof(value) === "number" && !isNaN(value); return typeof(value) === "number" && !isNaN(value);

@ -14,6 +14,8 @@ Stats.instanceData = function (Env) {
adminEmail: Env.adminEmail, adminEmail: Env.adminEmail,
consentToContact: Boolean(Env.consentToContact), consentToContact: Boolean(Env.consentToContact),
instancePurpose: Env.instancePurpose, // XXX
}; };
/* We reserve the right to choose not to include instances /* We reserve the right to choose not to include instances

Loading…
Cancel
Save