wzq 5 년 전
부모
커밋
2a2f155c68
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      app/Repositories/PostRepositories.php

+ 2 - 2
app/Repositories/PostRepositories.php

@@ -375,11 +375,11 @@ class PostRepositories
             $post = $this->post;
             $order = 'post.id';
         }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];
             $order = 'post_collect.id';
         }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];
             $order = 'post_share.updated_at';
         }