|
@@ -222,11 +222,11 @@ class BeanRepository
|
|
->find($request['post_id']);
|
|
->find($request['post_id']);
|
|
if ($post){
|
|
if ($post){
|
|
$post->created_time = Carbon::parse($post->created_at)->diffForHumans();
|
|
$post->created_time = Carbon::parse($post->created_at)->diffForHumans();
|
|
- $post_imgs = $post->imgs;
|
|
|
|
$imgs = [];
|
|
$imgs = [];
|
|
- foreach($post_imgs as $img){
|
|
|
|
|
|
+ foreach($post->imgs as $img){
|
|
$imgs[] = $img['img'];
|
|
$imgs[] = $img['img'];
|
|
}
|
|
}
|
|
|
|
+ unset($post->imgs);
|
|
$post->imgs = $imgs;
|
|
$post->imgs = $imgs;
|
|
$post->topic = $post->topic();
|
|
$post->topic = $post->topic();
|
|
$star_detail['post'] = $post;
|
|
$star_detail['post'] = $post;
|