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 authored and tuxpiper committed Oct 1, 2024
1 parent 1e85d97 commit ebd07fc
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 ebd07fc

Please sign in to comment.