|
@@ -375,11 +375,11 @@ class PostRepositories
|
|
$post = $this->post;
|
|
$post = $this->post;
|
|
$order = 'post.id';
|
|
$order = 'post.id';
|
|
}elseif($type == 'collect'){
|
|
}elseif($type == 'collect'){
|
|
- $post = $this->post->join('post_collect', 'post_collect.post_id', '=', 'post.id');
|
|
|
|
|
|
+ $post = $this->post->withTrashed()->join('post_collect', 'post_collect.post_id', '=', 'post.id');
|
|
$where[] = ['post_collect.uid', $uid];
|
|
$where[] = ['post_collect.uid', $uid];
|
|
$order = 'post_collect.id';
|
|
$order = 'post_collect.id';
|
|
}else{
|
|
}else{
|
|
- $post = $this->post->join('post_share', 'post_share.post_id', '=', 'post.id');
|
|
|
|
|
|
+ $post = $this->post->withTrashed()->join('post_share', 'post_share.post_id', '=', 'post.id');
|
|
$where[] = ['post_share.uid', $uid];
|
|
$where[] = ['post_share.uid', $uid];
|
|
$order = 'post_share.updated_at';
|
|
$order = 'post_share.updated_at';
|
|
}
|
|
}
|