From: Thibaut Girka Date: Wed, 6 Mar 2019 11:21:18 +0000 (+0100) Subject: Add an icon to highlight polls behind a Content Warning X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=1bb23100b1059879a743302253eafc8317daf215;p=mastodon.git Add an icon to highlight polls behind a Content Warning --- diff --git a/app/javascript/flavours/glitch/components/status.js b/app/javascript/flavours/glitch/components/status.js index b38bebe11..31f4f1ddd 100644 --- a/app/javascript/flavours/glitch/components/status.js +++ b/app/javascript/flavours/glitch/components/status.js @@ -440,6 +440,7 @@ export default class Status extends ImmutablePureComponent { attachments = status.get('media_attachments'); if (status.get('poll')) { media = ; + mediaIcon = 'tasks'; } else if (attachments.size > 0) { if (muted || attachments.some(item => item.get('type') === 'unknown')) { media = (