From 7004451db4efb8a5b76b11772a14a45750a53625 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Thu, 17 Oct 2019 20:19:20 -0700 Subject: [PATCH] Don't allow image uploads for non-logged-in users. - Fixes #297 --- ui/src/components/comment-form.tsx | 4 ++-- ui/src/components/post-form.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/src/components/comment-form.tsx b/ui/src/components/comment-form.tsx index 7c6460a27..2095e9e5f 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 b59d07d6f..09b9606ea 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 &&