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 =