mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 18:58:10 +00:00
FIX: Megatopics forced into summary mode when loading posts.
This commit is contained in:
parent
803968147c
commit
5100a62fc0
@ -51,6 +51,7 @@ class TopicView
|
||||
self.instance_variable_set("@#{key}".to_sym, value)
|
||||
end
|
||||
|
||||
@_post_number = @post_number.dup
|
||||
@post_number = [@post_number.to_i, 1].max
|
||||
@page = [@page.to_i, 1].max
|
||||
|
||||
@ -490,7 +491,7 @@ class TopicView
|
||||
|
||||
# Filters
|
||||
if @filter == 'summary' ||
|
||||
((@post_number.blank? || @post_number.to_i == 1) && force_summary_mode?)
|
||||
((@_post_number.blank? || @_post_number.to_i == 1) && force_summary_mode?)
|
||||
|
||||
@filtered_posts = @filtered_posts.summary(@topic.id)
|
||||
@contains_gaps = true unless force_summary_mode?
|
||||
|
Loading…
x
Reference in New Issue
Block a user