add: achievement toggle

Closes #16
This commit is contained in:
Mar0xy 2023-09-29 00:57:38 +02:00
parent 0c7011bd02
commit fc00f08d5b
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828
9 changed files with 45 additions and 1 deletions

View file

@ -104,6 +104,7 @@ export const paramDef = {
enableChartsForRemoteUser: { type: 'boolean' },
enableChartsForFederatedInstances: { type: 'boolean' },
enableServerMachineStats: { type: 'boolean' },
enableAchievements: { type: 'boolean' },
enableIdenticonGeneration: { type: 'boolean' },
serverRules: { type: 'array', items: { type: 'string' } },
preservedUsernames: { type: 'array', items: { type: 'string' } },
@ -425,6 +426,10 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
set.enableServerMachineStats = ps.enableServerMachineStats;
}
if (ps.enableAchievements !== undefined) {
set.enableAchievements = ps.enableAchievements;
}
if (ps.enableIdenticonGeneration !== undefined) {
set.enableIdenticonGeneration = ps.enableIdenticonGeneration;
}