mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
add policyMode setting
This commit is contained in:
parent
7cb643d1e4
commit
b0036a3d28
1 changed files with 2 additions and 3 deletions
|
|
@ -368,9 +368,8 @@ export class DittoConf {
|
|||
return this.env.get('DITTO_POLICY') || path.join(this.dataDir, 'policy.ts');
|
||||
}
|
||||
|
||||
get policyMode(): string {
|
||||
if (Deno.env.get("DITTO_CUSTOM_POLICY") === "1") return "script";
|
||||
return "event";
|
||||
get policyMode(): "script" | "event" {
|
||||
return this.env.get("DITTO_CUSTOM_POLICY") ? "script" : "event";
|
||||
}
|
||||
|
||||
/** Absolute path to the data directory used by Ditto. */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue