diff --git a/app/assets/javascripts/components/components/video_player.jsx b/app/assets/javascripts/components/components/video_player.jsx
index fa0675413..9fab6d7c1 100644
--- a/app/assets/javascripts/components/components/video_player.jsx
+++ b/app/assets/javascripts/components/components/video_player.jsx
@@ -4,7 +4,16 @@ import IconButton from './icon_button';
const VideoPlayer = React.createClass({
propTypes: {
- media: ImmutablePropTypes.map.isRequired
+ media: ImmutablePropTypes.map.isRequired,
+ width: React.PropTypes.number,
+ height: React.PropTypes.number
+ },
+
+ getDefaultProps () {
+ return {
+ width: 196,
+ height: 110
+ };
},
getInitialState () {
@@ -21,7 +30,7 @@ const VideoPlayer = React.createClass({
render () {
return (
-
+
diff --git a/app/assets/javascripts/components/features/account/components/action_bar.jsx b/app/assets/javascripts/components/features/account/components/action_bar.jsx
index 9fa9fff3d..75b26775c 100644
--- a/app/assets/javascripts/components/features/account/components/action_bar.jsx
+++ b/app/assets/javascripts/components/features/account/components/action_bar.jsx
@@ -16,11 +16,11 @@ const ActionBar = React.createClass({
render () {
const { account, me } = this.props;
- let followBack = '';
+ let infoText = '';
let actionButton = '';
if (account.get('id') === me) {
- actionButton = 'This is you!';
+ infoText = 'This is you!';
} else {
if (account.getIn(['relationship', 'following'])) {
actionButton =
@@ -29,13 +29,13 @@ const ActionBar = React.createClass({
}
if (account.getIn(['relationship', 'followed_by'])) {
- followBack = 'Follows you!';
+ infoText = 'Follows you!';
}
}
return (
- {actionButton} {followBack}
+ {actionButton} {infoText}
);
},
diff --git a/app/assets/javascripts/components/features/status/components/detailed_status.jsx b/app/assets/javascripts/components/features/status/components/detailed_status.jsx
index fbc9cb69b..ffa536ae8 100644
--- a/app/assets/javascripts/components/features/status/components/detailed_status.jsx
+++ b/app/assets/javascripts/components/features/status/components/detailed_status.jsx
@@ -30,6 +30,15 @@ const DetailedStatus = React.createClass({
render () {
const status = this.props.status.get('reblog') ? this.props.status.get('reblog') : this.props.status;
+ let media = '';
+
+ if (status.get('media_attachments').size > 0) {
+ if (status.getIn(['media_attachments', 0, 'type']) === 'video') {
+ media =
;
+ } else {
+ media =
;
+ }
+ }
return (
@@ -40,6 +49,8 @@ const DetailedStatus = React.createClass({
+ {media}
+