-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.ts
More file actions
42 lines (40 loc) · 1.38 KB
/
settings.ts
File metadata and controls
42 lines (40 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import { SettingsFormField } from "@devvit/public-api";
export enum AppSetting {
RemoveDeleted = "removeDeleted",
RemoveShadowbanned = "removeShadowbanned",
RemoveBanned = "removeBanned",
LockOnRemove = "lockOnRemove",
ReplyCommentForShadowbanned = "replyCommentForShadowbanned",
}
export const appSettings: SettingsFormField[] = [
{
name: AppSetting.RemoveDeleted,
type: "boolean",
defaultValue: true,
label: "Remove modqueued content for deleted users",
},
{
name: AppSetting.RemoveShadowbanned,
type: "boolean",
defaultValue: true,
label: "Remove modqueued content for suspended and shadowbanned users",
},
{
name: AppSetting.RemoveBanned,
type: "boolean",
defaultValue: false,
label: "Remove modqueued content for banned users",
},
{
name: AppSetting.LockOnRemove,
type: "boolean",
defaultValue: false,
label: "Lock posts or comments when removing from modqueue",
},
{
name: AppSetting.ReplyCommentForShadowbanned,
type: "paragraph",
label: "If a user is found to be shadowbanned or suspended, reply to their content with this comment on removal.",
helpText: "Leave blank to skip replying. Markdown is supported. You may wish to use this to alert users to the appeal process.",
},
];