about summary refs log tree commit diff
path: root/app/javascript
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-11-29 23:46:53 -0600
committerFire Demon <firedemon@creature.cafe>2020-11-29 23:46:53 -0600
commit1ac5226b10d7cbf801cb95553707a20a412f42be (patch)
tree5b658f96b5f8228ac46a3702ecc3f0c9cd8eeb04 /app/javascript
parent2711b6f523807dd1b2f1f8a7d5ce71595b5b12bb (diff)
Allow republishing monsterfork-2020-11-29
Diffstat (limited to 'app/javascript')
-rw-r--r--app/javascript/flavours/glitch/components/status_action_bar.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/components/status_action_bar.js b/app/javascript/flavours/glitch/components/status_action_bar.js
index b844590c0..d5a42b399 100644
--- a/app/javascript/flavours/glitch/components/status_action_bar.js
+++ b/app/javascript/flavours/glitch/components/status_action_bar.js
@@ -15,6 +15,7 @@ const messages = defineMessages({
   redraft: { id: 'status.redraft', defaultMessage: 'Delete & re-draft' },
   edit: { id: 'status.edit', defaultMessage: 'Edit' },
   publish: { id: 'status.publish', defaultMessage: 'Publish' },
+  republish: { id: 'status.republish', defaultMessage: 'Republish' },
   direct: { id: 'status.direct', defaultMessage: 'Direct message @{name}' },
   mention: { id: 'status.mention', defaultMessage: 'Mention @{name}' },
   mute: { id: 'account.mute', defaultMessage: 'Mute @{name}' },
@@ -237,6 +238,8 @@ class StatusActionBar extends ImmutablePureComponent {
 
       if (status.get('published') === false) {
         menu.push({ text: intl.formatMessage(messages.publish), action: this.handlePublishClick });
+      } else {
+        menu.push({ text: intl.formatMessage(messages.republish), action: this.handlePublishClick });
       }
     } else {
       menu.push({ text: intl.formatMessage(messages.mention, { name: status.getIn(['account', 'username']) }), action: this.handleMentionClick });