Reports: only show quote if length > 0

This commit is contained in:
Alex Gleason
2020-12-31 22:46:21 -06:00
parent a8711f7b14
commit 7bd670728d

View File

@ -125,7 +125,9 @@ class Report extends ImmutablePureComponent {
)}
</div>
<div className='admin-report__quote'>
<blockquote className='md' dangerouslySetInnerHTML={{ __html: report.get('content') }} />
{report.get('content', '').length > 0 &&
<blockquote className='md' dangerouslySetInnerHTML={{ __html: report.get('content') }} />
}
<span className='byline'>&mdash; @{report.getIn(['actor', 'acct'])}</span>
</div>
</div>