FIX: going from /categories to /latest on mobile might break infinite scrolling

This commit is contained in:
Régis Hanol
2018-08-15 01:22:03 +02:00
parent ba0e322fd0
commit 12bab65167
3 changed files with 11 additions and 2 deletions

View File

@ -401,7 +401,7 @@ class TopicQuery
end
list = TopicList.new(filter, @user, topics, options.merge(@options))
list.per_page = per_page_setting
list.per_page = options[:per_page] || per_page_setting
list
end