]> Untitled Git - lemmy.git/commitdiff
Nother fix for comment box bug. #861
authorDessalines <tyhou13@gmx.com>
Thu, 2 Jul 2020 00:38:11 +0000 (20:38 -0400)
committerDessalines <tyhou13@gmx.com>
Thu, 2 Jul 2020 00:38:11 +0000 (20:38 -0400)
ui/src/components/comment-form.tsx

index 72a604b9f62412774592fa239a898ebd7badb8ca..61ee3d77b8f9b1d386b7960b6f70e629ab2cb0a8 100644 (file)
@@ -263,7 +263,9 @@ export class CommentForm extends Component<CommentFormProps, CommentFormState> {
       // 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;