From 773020ac9d92276c1871d79ea589a947e80e0bce 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 &&