Browse Source

Simplify the "User Topics" query

Visman 1 year ago
parent
commit
8d70b9cae2
1 changed files with 1 additions and 2 deletions
  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;