FEATURE: Forced summary mode for megalodon topics.

This is mainly done for performance reasons and megalodon
topics are usually a byproduct of imports where site setting
limits are not respected.
This commit is contained in:
Guo Xiang Tan
2018-06-21 14:00:20 +08:00
parent ac80360bea
commit f7d22bad90
3 changed files with 28 additions and 3 deletions
+1 -1
View File
@@ -355,7 +355,7 @@ class Post < ActiveRecord::Base
SELECT posts.id
FROM posts
WHERE posts.topic_id = #{topic_id.to_i}
AND post_number = 1
AND posts.post_number = 1
) UNION
(
SELECT p1.id