Update (post): Fix missing post date format
This commit is contained in:
@@ -202,8 +202,8 @@ public function post(Request $request, $country, $post_slug)
|
|||||||
->setType('Article')
|
->setType('Article')
|
||||||
->addImage($post->featured_image)
|
->addImage($post->featured_image)
|
||||||
->addValue('author', $post->author->name)
|
->addValue('author', $post->author->name)
|
||||||
->addValue('datePublished', $post->publish_at->format('Y-m-d'))
|
->addValue('datePublished', $post->publish_date->format('Y-m-d'))
|
||||||
->addValue('dateCreated', $post->publish_at->format('Y-m-d'))
|
->addValue('dateCreated', $post->publish_date->format('Y-m-d'))
|
||||||
->addValue('dateModified', $post->updated_at->format('Y-m-d'))
|
->addValue('dateModified', $post->updated_at->format('Y-m-d'))
|
||||||
->addValue('description', $post->excerpt)
|
->addValue('description', $post->excerpt)
|
||||||
->addValue('articleBody', trim(preg_replace('/\s\s+/', ' ', strip_tags($post->html_body))));
|
->addValue('articleBody', trim(preg_replace('/\s\s+/', ' ', strip_tags($post->html_body))));
|
||||||
|
|||||||
Reference in New Issue
Block a user