mirror of
https://github.com/discourse/discourse.git
synced 2025-02-07 20:08:26 +00: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…
x
Reference in New Issue
Block a user