mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 13:09:18 +08:00
FIX: OFFSET wasn't being applied correctly
This commit is contained in:
parent
e831203897
commit
1714019cf7
|
@ -470,7 +470,7 @@ class TopicQuery
|
|||
|
||||
if options[:page]
|
||||
offset = options[:page].to_i * options[:per_page]
|
||||
result.offset(offset) if offset > 0
|
||||
result = result.offset(offset) if offset > 0
|
||||
end
|
||||
|
||||
if options[:topic_ids]
|
||||
|
|
Loading…
Reference in New Issue
Block a user