Update mutewords and hiddenposts to use the new sdk
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user