mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 04:53:37 +08:00
correct noscript link to next page
This commit is contained in:
parent
f44dba5fc5
commit
12fa6e9a4e
|
@ -82,7 +82,7 @@ class TopicsController < ApplicationController
|
||||||
|
|
||||||
last_post = @topic_view.posts[-1]
|
last_post = @topic_view.posts[-1]
|
||||||
if last_post.present? and (@topic_view.topic.highest_post_number > last_post.post_number)
|
if last_post.present? and (@topic_view.topic.highest_post_number > last_post.post_number)
|
||||||
@next_page = (@topic_view.posts[0].post_number / SiteSetting.posts_per_page) + 2
|
@next_page = (@topic_view.posts[0].post_number / SiteSetting.posts_per_page) + 1
|
||||||
end
|
end
|
||||||
|
|
||||||
store_preloaded("topic_#{@topic_view.topic.id}", MultiJson.dump(topic_view_serializer))
|
store_preloaded("topic_#{@topic_view.topic.id}", MultiJson.dump(topic_view_serializer))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user