]> cat aescling's git repositories - mastodon.git/commitdiff
Add an icon to highlight polls behind a Content Warning
authorThibaut Girka <thib@sitedethib.com>
Wed, 6 Mar 2019 11:21:18 +0000 (12:21 +0100)
committerThibG <thib@sitedethib.com>
Wed, 6 Mar 2019 12:01:27 +0000 (13:01 +0100)
app/javascript/flavours/glitch/components/status.js

index b38bebe116b73f78705dd9901ee70b803f51a66f..31f4f1ddd32863c19fa4cf716065385afec77cea 100644 (file)
@@ -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 = (