Explorar o código

Merge branch 'develop'

wzq %!s(int64=5) %!d(string=hai) anos
pai
achega
7b68516884
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      app/Repositories/PostRepositories.php

+ 1 - 0
app/Repositories/PostRepositories.php

@@ -611,6 +611,7 @@ class PostRepositories
             } else {
                 $topic = $topic->join('category_topic', 'category_topic.topic_id', '=', 'topic.id')->select('topic.*', 'category_topic.id as cid');
                 $where[] = ['category_topic.category_id', $request['category_id']];
+                $where[] = ['topic.is_open', 1];
                 return $topic
                     ->where($where)
                     ->orderBy('cid', 'asc')