mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
fix(api): 🐛 Fix rules being duplicated in API
Having default values merged with the existing config was incorrectly causing extra values to appear in rules
This commit is contained in:
parent
a1c261f47d
commit
e5e8099883
|
|
@ -75,7 +75,7 @@ export interface Config {
|
|||
/** @default true */
|
||||
registration: boolean;
|
||||
|
||||
/** @default ["Do not harass others","Be nice to people","Don't spam","Don't post illegal content"] */
|
||||
/** @default [] */
|
||||
rules: string[];
|
||||
};
|
||||
|
||||
|
|
@ -423,12 +423,7 @@ export const defaultConfig: Config = {
|
|||
signups: {
|
||||
tos_url: "https://my-site.com/tos",
|
||||
registration: true,
|
||||
rules: [
|
||||
"Do not harass others",
|
||||
"Be nice to people",
|
||||
"Don't spam",
|
||||
"Don't post illegal content",
|
||||
],
|
||||
rules: [],
|
||||
},
|
||||
oidc: {
|
||||
providers: [],
|
||||
|
|
|
|||
Loading…
Reference in a new issue