feat: add option to disable random placeholders, close #107

This commit is contained in:
Xyphyn committed 2023-08-16 15:49:06 -07:00
1 parent 61a8344fd7
commit dbbd460597
4 files changed
+47 -28

No files matched your search

+2
View File
@@ -48,6 +48,7 @@ interface Settings {
removalReasonPreset: string
}
newVote: boolean
randomPlaceholders: boolean
}
export const defaultSettings: Settings = {
@@ -83,6 +84,7 @@ export const defaultSettings: Settings = {
removalReasonPreset: `Your submission in *"{{post}}"* was removed for {{reason}}.`,
},
newVote: toBool(env.PUBLIC_NEW_VOTE_BUTTONS) ?? false,
randomPlaceholders: toBool(env.PUBLIC_RANDOM_PLACEHOLDERS) ?? true,
}
export const userSettings = writable(defaultSettings)