Nother fix for comment box bug. #861

pull/885/head
Dessalines 2020-07-01 20:38:11 -04:00
parent 360e7aec42
commit 2e886ce4e6
1 changed files with 3 additions and 1 deletions

View 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;