]> cat aescling's git repositories - mastodon.git/commitdiff
Fix boost confirmation modal for description-less media not working
authorThibaut Girka <thib@sitedethib.com>
Tue, 17 Sep 2019 19:23:59 +0000 (21:23 +0200)
committerThibG <thib@sitedethib.com>
Tue, 17 Sep 2019 19:46:36 +0000 (21:46 +0200)
app/javascript/flavours/glitch/containers/status_container.js

index bded66d092a4ed9f267c15e6813152adf6cef3da..15eb4f85f0b4643516b83ca3a8b843d1d909dfa8 100644 (file)
@@ -108,7 +108,7 @@ const mapDispatchToProps = (dispatch, { intl, contextType }) => ({
     dispatch((_, getState) => {
       let state = getState();
       if (state.getIn(['local_settings', '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 }));
+        dispatch(openModal('BOOST', { status, onReblog: this.onModalReblog, missingMediaDescription: true }));
       } else if (e.shiftKey || !boostModal) {
         this.onModalReblog(status);
       } else {