From: Dessalines Date: Fri, 18 Oct 2019 03:19:20 +0000 (-0700) Subject: Don't allow image uploads for non-logged-in users. X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/readmes/%7B%7D/%22%7Burl%7D/%24%7Bargs.pageFn.prev%7D?a=commitdiff_plain;h=7004451db4efb8a5b76b11772a14a45750a53625;p=lemmy.git Don't allow image uploads for non-logged-in users. - Fixes #297 --- diff --git a/ui/src/components/comment-form.tsx b/ui/src/components/comment-form.tsx index 7c6460a2..2095e9e5 100644 --- a/ui/src/components/comment-form.tsx +++ b/ui/src/components/comment-form.tsx @@ -139,8 +139,8 @@ export class CommentForm extends Component { {this.props.node && } #
- - + +
{this.state.imageLoading && diff --git a/ui/src/components/post-form.tsx b/ui/src/components/post-form.tsx index b59d07d6..09b9606e 100644 --- a/ui/src/components/post-form.tsx +++ b/ui/src/components/post-form.tsx @@ -112,8 +112,8 @@ export class PostForm extends Component {
#
}
- - + +
{this.state.imageLoading &&