From 4bc237fcfe2838edb69baec87bf95ece4fc26933 Mon Sep 17 00:00:00 2001 From: kibigo! Date: Sun, 25 Jun 2017 14:22:11 -0700 Subject: [PATCH] Adds media icons to toots --- app/javascript/mastodon/components/status.js | 22 +++++++++++++------- app/javascript/styles/components.scss | 4 +++- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/app/javascript/mastodon/components/status.js b/app/javascript/mastodon/components/status.js index ec9b2a255b..a3b9c477b8 100644 --- a/app/javascript/mastodon/components/status.js +++ b/app/javascript/mastodon/components/status.js @@ -175,6 +175,7 @@ class StatusUnextended extends ImmutablePureComponent { render () { let media = null; + let mediaType = null; let thumb = null; let statusAvatar; @@ -222,9 +223,11 @@ class StatusUnextended extends ImmutablePureComponent { } else if (status.getIn(['media_attachments', 0, 'type']) === 'video') { media = ; + mediaType =