From 8ef13c9dab813b8fa4fb642c90e46f813c2106b3 Mon Sep 17 00:00:00 2001 From: Wisdom Ebong <30173059+webong@users.noreply.github.com> Date: Mon, 20 Nov 2023 16:28:31 +0100 Subject: [PATCH] Update UpdatePostCommand.php Since we're making an update, there's no reason to updating the created column. --- .../Modules/V5/Actions/Post/Commands/UpdatePostCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ushahidi/Modules/V5/Actions/Post/Commands/UpdatePostCommand.php b/src/Ushahidi/Modules/V5/Actions/Post/Commands/UpdatePostCommand.php index 929d62c6f6..e3d3370e3e 100644 --- a/src/Ushahidi/Modules/V5/Actions/Post/Commands/UpdatePostCommand.php +++ b/src/Ushahidi/Modules/V5/Actions/Post/Commands/UpdatePostCommand.php @@ -91,7 +91,7 @@ public static function fromRequest(int $id, PostRequest $request, Post $current_ ? $request->input('base_language') : $current_post->base_language; $input['published_to'] = $request->has('published_to') ? $request->input('published_to') : $current_post->published_to; - $input['created'] = strtotime($current_post->created); + // $input['created'] = strtotime($current_post->created); $input['updated'] = time(); if ($request->has('completed_stages')) {