Handle muting correctly

This commit is contained in:
Paul Frazee
2024-02-15 13:13:26 -08:00
parent 1b33b88ae2
commit ef1a5ca2fd
8 changed files with 29 additions and 48 deletions
@@ -58,18 +58,12 @@ export function useModerationCauseDescription(
if (cause.type === 'muted') {
if (cause.source.type === 'list') {
return {
name:
context === 'account'
? _(msg`Muted by "${cause.source.list.name}"`)
: _(msg`Post by muted user ("${cause.source.list.name}")`),
name: _(msg`Muted by "${cause.source.list.name}"`),
description: _(msg`You have muted this user`),
}
} else {
return {
name:
context === 'account'
? _(msg`Muted User`)
: _(msg`Post by muted user`),
name: _(msg`Muted User`),
description: _(msg`You have muted this user`),
}
}