about summary refs log tree commit diff
path: root/app/assets/javascripts/components/features/status
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-01-09 14:10:32 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-01-09 14:10:32 +0100
commit3bddd647e02b4b831316e893ad756e6cf5d74c0b (patch)
tree86b3a2f45798f2a69c66a16a5052585583f4265c /app/assets/javascripts/components/features/status
parent75f80bef107cfe9e9c0e6ba3dc51ef86c89e40cc (diff)
parentd64c454cfe0db2e0f8205e37be4b0161309c5c2c (diff)
Merge branch 'dropdown' of https://github.com/blackle/mastodon into blackle-dropdown
Diffstat (limited to 'app/assets/javascripts/components/features/status')
-rw-r--r--app/assets/javascripts/components/features/status/index.jsx4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/assets/javascripts/components/features/status/index.jsx b/app/assets/javascripts/components/features/status/index.jsx
index 0a1528fe9..27a252759 100644
--- a/app/assets/javascripts/components/features/status/index.jsx
+++ b/app/assets/javascripts/components/features/status/index.jsx
@@ -23,6 +23,7 @@ import { ScrollContainer }   from 'react-router-scroll';
 import ColumnBackButton      from '../../components/column_back_button';
 import StatusContainer       from '../../containers/status_container';
 import { openMedia }         from '../../actions/modal';
+import { isMobile } from '../../is_mobile'
 
 const makeMapStateToProps = () => {
   const getStatus = makeGetStatus();
@@ -80,6 +81,9 @@ const Status = React.createClass({
 
   handleMentionClick (account) {
     this.props.dispatch(mentionCompose(account));
+    if (isMobile(window.innerWidth)) {
+      this.context.router.push('/statuses/new');
+    }
   },
 
   handleOpenMedia (url) {