Skip to content

Commit

Permalink
keep the source when update post
Browse files Browse the repository at this point in the history
  • Loading branch information
Mh-Asmi committed Sep 19, 2024
1 parent 8060251 commit 2f64bca
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +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['source'] = $current_post->source;
$input['created'] = self::ensureTimestamp($current_post->created);
$input['updated'] = time();

Expand Down

0 comments on commit 2f64bca

Please sign in to comment.