Procházet zdrojové kódy

Merge branch 'master' into release

wzq před 5 roky
rodič
revize
ea9a9a0954
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  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')