|
@@ -223,6 +223,11 @@ class BeanRepository
|
|
if ($post){
|
|
if ($post){
|
|
$created_at = $post_detail->created_at;
|
|
$created_at = $post_detail->created_at;
|
|
$post->created_time = Carbon::parse($created_at)->diffForHumans();
|
|
$post->created_time = Carbon::parse($created_at)->diffForHumans();
|
|
|
|
+ $imgs = $post->imgs;
|
|
|
|
+ foreach($imgs as $img){
|
|
|
|
+ $imgs[] = $img['img'];
|
|
|
|
+ }
|
|
|
|
+ $post->imgs = $imgs;
|
|
$post->topic = $post->topic();
|
|
$post->topic = $post->topic();
|
|
$star_detail['post'] = $post;
|
|
$star_detail['post'] = $post;
|
|
}
|
|
}
|