1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

#47 - Updates the total comments when a comment is added.

This commit is contained in:
Abijeet
2017-06-04 20:12:01 +05:30
parent 9558f84b97
commit 06d75e1804
6 changed files with 41 additions and 21 deletions

View File

@ -46,8 +46,8 @@ class CommentRepo {
}
public function delete($comment) {
$comment->text = trans('errors.cannot_add_comment_to_draft');
$comment->html = trans('errors.cannot_add_comment_to_draft');
$comment->text = trans('activities.comment_deleted');
$comment->html = trans('activities.comment_deleted');
$comment->active = false;
$userId = user()->id;
$comment->updated_by = $userId;