fixes #442
This commit is contained in:
@@ -56,7 +56,7 @@ class ForumTopic < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def last_page
|
||||
(posts.count / Danbooru.config.posts_per_page.to_f).ceil
|
||||
((posts.count + 1) / Danbooru.config.posts_per_page.to_f).ceil
|
||||
end
|
||||
|
||||
def presenter(forum_posts)
|
||||
|
||||
Reference in New Issue
Block a user