Skip to content

NOW MANAGED ON CODEBERG

#47 Inserts null for updated_at when the user is creating a comment.

Abijeet34802ff8a6ea
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;
}