浏览代码

Simplify the "User Topics" query

Visman 1 年之前
父节点
当前提交
8d70b9cae2
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      app/Models/Search/ActionT.php

+ 1 - 2
app/Models/Search/ActionT.php

@@ -79,8 +79,7 @@ class ActionT extends Method
             case 'topics':
                 $query = 'SELECT t.id
                     FROM ::topics AS t
-                    INNER JOIN ::posts AS p ON t.first_post_id=p.id
-                    WHERE t.forum_id IN (?ai:forums) AND t.moved_to=0 AND p.poster_id=?i:uid
+                    WHERE t.forum_id IN (?ai:forums) AND t.moved_to=0 AND t.poster_id=?i:uid
                     ORDER BY t.first_post_id DESC'; // t.last_post
 
                 break;