fix: hide the content of muted users' notes in the parent note preview

This commit is contained in:
codytseng
2025-02-25 23:18:12 +08:00
parent 2f9be97178
commit ecd7e6d7db
4 changed files with 27 additions and 3 deletions

View File

@@ -54,7 +54,7 @@ export default function ParentNotePreview({
<div className="shrink-0">{t('reply to')}</div>
{event && <UserAvatar className="shrink-0" userId={event.pubkey} size="tiny" />}
{isMuted ? (
<div className="truncate">{t('[muted]')}</div>
<div className="truncate">[{t('This user has been muted')}]</div>
) : (
<ContentPreview className="truncate" event={event} />
)}