Selaa lähdekoodia

Latest active topics limit to 1000 pieces

Visman 2 vuotta sitten
vanhempi
commit
2b67ee2911
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      app/Models/Search/ActionT.php

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

@@ -39,7 +39,8 @@ class ActionT extends Method
                 $query = 'SELECT t.id
                 $query = 'SELECT t.id
                     FROM ::topics AS t
                     FROM ::topics AS t
                     WHERE t.forum_id IN (?ai:forums) AND t.moved_to=0
                     WHERE t.forum_id IN (?ai:forums) AND t.moved_to=0
-                    ORDER BY t.last_post DESC';
+                    ORDER BY t.last_post DESC
+                    LIMIT 1000';
                 break;
                 break;
             case 'unanswered_topics':
             case 'unanswered_topics':
                 $query = 'SELECT t.id
                 $query = 'SELECT t.id