diff options
author | Minseo Lee <itoupluk427@gmail.com> | 2024-02-27 14:39:41 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-27 14:39:41 +0900 |
commit | 8d394a354114d5d6cacc79f60035a7a3d9629659 (patch) | |
tree | 5678ed30383917e01a9e0d4a01eb2b206d34aa73 /src/lib/moderation.ts | |
parent | 860b5307adf29e7f47e2ef6a84af1932929223b1 (diff) | |
parent | 58aaad704aa971c5ebbf5a5f330a2e2129b557f6 (diff) | |
download | voidsky-8d394a354114d5d6cacc79f60035a7a3d9629659.tar.zst |
Merge branch 'main' into patch-3
Diffstat (limited to 'src/lib/moderation.ts')
-rw-r--r-- | src/lib/moderation.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/moderation.ts b/src/lib/moderation.ts index bf19c208a..b6ebb47a0 100644 --- a/src/lib/moderation.ts +++ b/src/lib/moderation.ts @@ -67,6 +67,13 @@ export function describeModerationCause( description: 'You have hidden this post', } } + // @ts-ignore Temporary extension to the moderation system -prf + if (cause.type === 'muted-word') { + return { + name: 'Post hidden by muted word', + description: `You've chosen to hide a word or tag within this post.`, + } + } return cause.labelDef.strings[context].en } |