Skip to content

Commit

Permalink
Cannot upload until login
Browse files Browse the repository at this point in the history
  • Loading branch information
cutls committed Nov 11, 2022
1 parent 5f64ff0 commit 7dd14be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/mastodon/features/ui/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ class UI extends React.PureComponent {
this.dragTargets.push(e.target);
}

if (e.dataTransfer && Array.from(e.dataTransfer.types).includes('Files') && this.props.canUploadMore) {
if (e.dataTransfer && Array.from(e.dataTransfer.types).includes('Files') && this.props.canUploadMore && this.props.username) {
this.setState({ draggingOver: true });
}
}
Expand Down

0 comments on commit 7dd14be

Please sign in to comment.