From: Dessalines Date: Thu, 2 Jul 2020 00:38:11 +0000 (-0400) Subject: Nother fix for comment box bug. #861 X-Git-Url: http://these/git/%22/display/44b525e5-4101b003e005e70a-d472d963/static/README.ru.md?a=commitdiff_plain;h=2e886ce4e62e6788554d165cd7024e4618ea49a5;p=lemmy.git Nother fix for comment box bug. #861 --- diff --git a/ui/src/components/comment-form.tsx b/ui/src/components/comment-form.tsx index 72a604b9..61ee3d77 100644 --- a/ui/src/components/comment-form.tsx +++ b/ui/src/components/comment-form.tsx @@ -263,7 +263,9 @@ export class CommentForm extends Component { // If its a comment edit, only check that its from your user, and that its a // text edit only - (op == UserOperation.EditComment && data.comment.content) + (data.comment.creator_id == UserService.Instance.user.id && + op == UserOperation.EditComment && + data.comment.content) ) { this.state.previewMode = false; this.state.loading = false;