]> BookStack Code Mirror - bookstack/blobdiff - app/Repos/CommentRepo.php
#47 Inserts null for updated_at when the user is creating a comment.
[bookstack] / app / Repos / CommentRepo.php
index 10b36eb16c19dfeb8a772d1ef72aa466e63a9ab1..7e4955d5569e040c2fe39b465421627efe18ad19 100644 (file)
@@ -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;
     }