Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/policyserv_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ interface CommunityResponse {
export interface CommunityConfig {
keyword_filter_keywords?: string[];
mention_filter_max_mentions?: number; // whole number, positive to enable
mention_filter_min_plaintext_length?: number; // whole number
many_ats_filter_max_ats?: number; // whole number, positive to enable
media_filter_media_types?: string[];
density_filter_max_density?: number; // float, positive to enable
Expand Down Expand Up @@ -124,6 +125,11 @@ export const ConfigDescriptions: Record<string /* user-friendly name */, ConfigD
description: "The maximum number of mentions allowed in a single message. Set to -1 to disable.",
transformFn: toNumber,
},
"min_plaintext_mention_length": {
property: "mention_filter_min_plaintext_length",
description: "The minimum length a user's display name must be to be considered a mention.",
transformFn: toNumber,
},
"max_ats": {
property: "many_ats_filter_max_ats",
description: "The maximum number of '@' symbols allowed in a single message. Set to -1 to disable.",
Expand Down