diff options
author | Reverite <github@reverite.sh> | 2019-05-11 18:06:12 -0700 |
---|---|---|
committer | Reverite <github@reverite.sh> | 2019-05-11 18:06:12 -0700 |
commit | cdb159f27e2aeb2cf3bb184ac20b7056b013f714 (patch) | |
tree | 01a185cccbaedb031eaf592706349907dc6decd4 /app/javascript/flavours/glitch/containers/status_container.js | |
parent | b403052b6759c8a87fc8e20304c0c31c05412313 (diff) | |
parent | f6838a28f64a2e1a955d7062d8b4270312df802f (diff) |
Merge branch 'glitch' into production
Diffstat (limited to 'app/javascript/flavours/glitch/containers/status_container.js')
-rw-r--r-- | app/javascript/flavours/glitch/containers/status_container.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/app/javascript/flavours/glitch/containers/status_container.js b/app/javascript/flavours/glitch/containers/status_container.js index 60636feb4..98dc5bb87 100644 --- a/app/javascript/flavours/glitch/containers/status_container.js +++ b/app/javascript/flavours/glitch/containers/status_container.js @@ -88,18 +88,18 @@ const mapDispatchToProps = (dispatch, { intl }) => ({ }, onModalReblog (status) { - dispatch(reblog(status)); + if (status.get('reblogged')) { + dispatch(unreblog(status)); + } else { + dispatch(reblog(status)); + } }, onReblog (status, e) { - if (status.get('reblogged')) { - dispatch(unreblog(status)); + if (e.shiftKey || !boostModal) { + this.onModalReblog(status); } else { - if (e.shiftKey || !boostModal) { - this.onModalReblog(status); - } else { - dispatch(openModal('BOOST', { status, onReblog: this.onModalReblog })); - } + dispatch(openModal('BOOST', { status, onReblog: this.onModalReblog })); } }, |