Add an icon to highlight polls behind a Content Warning

th-downstream
Thibaut Girka 6 years ago committed by ThibG
parent 1397836898
commit 8d82e153f3

@ -440,6 +440,7 @@ export default class Status extends ImmutablePureComponent {
attachments = status.get('media_attachments');
if (status.get('poll')) {
media = <PollContainer pollId={status.get('poll')} />;
mediaIcon = 'tasks';
} else if (attachments.size > 0) {
if (muted || attachments.some(item => item.get('type') === 'unknown')) {
media = (

Loading…
Cancel
Save