Update mutewords and hiddenposts to use the new sdk

This commit is contained in:
Paul Frazee
2024-03-09 12:45:26 -08:00
parent 2f8573b339
commit 68d4d4142c
11 changed files with 60 additions and 1104 deletions
@@ -84,17 +84,15 @@ export function useModerationCauseDescription(
}
}
}
// TODO
// if (cause.type === 'muted-word') {
// return {
// icon: EyeSlash,
// name: _(msg`Post hidden by muted word`),
// description: _(
// msg`You've chosen to hide a word or tag within this post.`,
// ),
// }
// }
// @ts-ignore Temporary extension to the moderation system -prf
if (cause.type === 'mute-word') {
return {
icon: EyeSlash,
name: _(msg`Post Hidden by Muted Word`),
description: _(
msg`You've chosen to hide a word or tag within this post.`,
),
}
}
if (cause.type === 'hidden') {
return {
icon: EyeSlash,