diff --git a/app/soapbox/actions/compose.js b/app/soapbox/actions/compose.js index 8466d8069..a2b5c0f85 100644 --- a/app/soapbox/actions/compose.js +++ b/app/soapbox/actions/compose.js @@ -228,11 +228,6 @@ export function uploadCompose(files) { return; } - if (getState().getIn(['compose', 'poll'])) { - dispatch(showAlert(undefined, messages.uploadErrorPoll)); - return; - } - dispatch(uploadComposeRequest()); for (const [i, f] of Array.from(files).entries()) { diff --git a/app/soapbox/components/status.js b/app/soapbox/components/status.js index 889afc01e..15c985e4b 100644 --- a/app/soapbox/components/status.js +++ b/app/soapbox/components/status.js @@ -265,6 +265,7 @@ class Status extends ImmutablePureComponent { render() { let media = null; + let poll = null; let statusAvatar, prepend, rebloggedByText, reblogContent; const { intl, hidden, featured, otherAccounts, unread, showThread, group } = this.props; @@ -332,8 +333,9 @@ class Status extends ImmutablePureComponent { } if (status.get('poll')) { - media = ; - } else if (status.get('media_attachments').size > 0) { + poll = ; + } + if (status.get('media_attachments').size > 0) { if (this.props.muted) { media = ( {media} + {poll} {showThread && status.get('in_reply_to_id') && status.get('in_reply_to_account_id') === status.getIn(['account', 'id']) && (