Support multiple

This commit is contained in:
Eric Bailey
2024-10-31 16:18:25 -05:00
parent 29013d52e0
commit de5e811cd4
@@ -101,7 +101,11 @@ export function useModerationCauseDescription(
if (cause.type === 'mute-word') {
return {
icon: EyeSlash,
name: _(msg`Post hidden by muted word: ${cause.match.word.value}`),
name: _(
msg`Post hidden by muted word(s): ${cause.match
.map(m => m.word.value)
.join(', ')}`,
),
description: _(
msg`You've chosen to hide a word or tag within this post.`,
),