about summary refs log tree commit diff
path: root/app/assets/javascripts/components
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-12-11 22:49:25 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-12-11 22:49:25 +0100
commite90fcb46e3e5bc4144d8777c2267bec638e327a0 (patch)
treecce8b79b97c115de80b908286173dabc38099545 /app/assets/javascripts/components
parentf90133d2adecedeb9b9fbc1ca524cdf097272893 (diff)
Sensitive content federates using the "nsfw" hashtag
Diffstat (limited to 'app/assets/javascripts/components')
-rw-r--r--app/assets/javascripts/components/components/status_action_bar.jsx9
1 files changed, 8 insertions, 1 deletions
diff --git a/app/assets/javascripts/components/components/status_action_bar.jsx b/app/assets/javascripts/components/components/status_action_bar.jsx
index 35feda88b..9c6d13bdf 100644
--- a/app/assets/javascripts/components/components/status_action_bar.jsx
+++ b/app/assets/javascripts/components/components/status_action_bar.jsx
@@ -10,7 +10,8 @@ const messages = defineMessages({
   block: { id: 'account.block', defaultMessage: 'Block' },
   reply: { id: 'status.reply', defaultMessage: 'Reply' },
   reblog: { id: 'status.reblog', defaultMessage: 'Reblog' },
-  favourite: { id: 'status.favourite', defaultMessage: 'Favourite' }
+  favourite: { id: 'status.favourite', defaultMessage: 'Favourite' },
+  open: { id: 'status.open', defaultMessage: 'Expand' }
 });
 
 const StatusActionBar = React.createClass({
@@ -55,10 +56,16 @@ const StatusActionBar = React.createClass({
     this.props.onBlock(this.props.status.get('account'));
   },
 
+  handleOpen () {
+    this.context.router.push(`/statuses/${this.props.status.get('id')}`);
+  },
+
   render () {
     const { status, me, intl } = this.props;
     let menu = [];
 
+    menu.push({ text: intl.formatMessage(messages.open), action: this.handleOpen });
+
     if (status.getIn(['account', 'id']) === me) {
       menu.push({ text: intl.formatMessage(messages.delete), action: this.handleDeleteClick });
     } else {