app/controllers/thredded/topics_controller.rb in thredded-0.15.4 vs app/controllers/thredded/topics_controller.rb in thredded-0.15.5

- old
+ new

@@ -54,10 +54,10 @@ def show authorize topic, :read? return redirect_to(canonical_topic_params) unless params_match?(canonical_topic_params) page_scope = policy_scope(topic.posts) .order_oldest_first - .includes(:user, :messageboard, :postable) + .includes(:user, :messageboard) .page(current_page) return redirect_to(last_page_params(page_scope)) if page_beyond_last?(page_scope) @posts = Thredded::TopicPostsPageView.new(thredded_current_user, topic, page_scope) Thredded::UserTopicReadState.touch!(thredded_current_user.id, topic.id, page_scope.last) if thredded_signed_in? @new_post = Thredded::PostForm.new(user: thredded_current_user, topic: topic, post_params: new_post_params)