diff options
author | Thibaut Girka <thib@sitedethib.com> | 2019-06-07 18:57:10 +0200 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-11-19 16:41:31 -0600 |
commit | e02786eb56ca5d7e7f451622183444c6393ffbf5 (patch) | |
tree | ff083eff093b4c8709667401e8c861d715a7fc24 /app/javascript/flavours/glitch | |
parent | f98dfefb3503b7059b92ad272316b9c1f067383c (diff) |
Fix unboost confirmation dialog not showing up on detailed statuses
Diffstat (limited to 'app/javascript/flavours/glitch')
-rw-r--r-- | app/javascript/flavours/glitch/features/status/index.js | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/app/javascript/flavours/glitch/features/status/index.js b/app/javascript/flavours/glitch/features/status/index.js index 8722490d9..a35de5c4f 100644 --- a/app/javascript/flavours/glitch/features/status/index.js +++ b/app/javascript/flavours/glitch/features/status/index.js @@ -237,16 +237,12 @@ export default class Status extends ImmutablePureComponent { handleReblogClick = (status, e) => { const { settings, dispatch } = this.props; - if (status.get('reblogged')) { - dispatch(unreblog(status)); + if (settings.get('confirm_boost_missing_media_description') && status.get('media_attachments').some(item => !item.get('description')) && !status.get('reblogged')) { + dispatch(openModal('BOOST', { status, onReblog: this.handleModalReblog, missingMediaDescription: true })); + } else if ((e && e.shiftKey) || !boostModal) { + this.handleModalReblog(status); } else { - if (settings.get('confirm_boost_missing_media_description') && status.get('media_attachments').some(item => !item.get('description'))) { - dispatch(openModal('BOOST', { status, onReblog: this.handleModalReblog, missingMediaDescription: true })); - } else if ((e && e.shiftKey) || !boostModal) { - this.handleModalReblog(status); - } else { - dispatch(openModal('BOOST', { status, onReblog: this.handleModalReblog })); - } + dispatch(openModal('BOOST', { status, onReblog: this.handleModalReblog })); } } |