From: Abijeet Date: Thu, 25 May 2017 02:32:49 +0000 (+0530) Subject: #47 Inserts null for updated_at when the user is creating a comment. X-Git-Tag: v0.18.0~1^2~45^2^2~22 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/34802ff8a6ead132ce963ba711849b58dc0f46f3 #47 Inserts null for updated_at when the user is creating a comment. --- diff --git a/app/Repos/CommentRepo.php b/app/Repos/CommentRepo.php index 10b36eb16..7e4955d55 100644 --- a/app/Repos/CommentRepo.php +++ b/app/Repos/CommentRepo.php @@ -26,6 +26,7 @@ class CommentRepo { // new comment $comment->page_id = $page->id; $comment->created_by = $userId; + $comment->updated_at = null; $comment->save(); return $comment; }