mirror of
https://github.com/versia-pub/server.git
synced 2026-01-26 12:16:01 +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 */
|
/** @default true */
|
||||||
registration: boolean;
|
registration: boolean;
|
||||||
|
|
||||||
/** @default ["Do not harass others","Be nice to people","Don't spam","Don't post illegal content"] */
|
/** @default [] */
|
||||||
rules: string[];
|
rules: string[];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -423,12 +423,7 @@ export const defaultConfig: Config = {
|
||||||
signups: {
|
signups: {
|
||||||
tos_url: "https://my-site.com/tos",
|
tos_url: "https://my-site.com/tos",
|
||||||
registration: true,
|
registration: true,
|
||||||
rules: [
|
rules: [],
|
||||||
"Do not harass others",
|
|
||||||
"Be nice to people",
|
|
||||||
"Don't spam",
|
|
||||||
"Don't post illegal content",
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
oidc: {
|
oidc: {
|
||||||
providers: [],
|
providers: [],
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue