Skip to content

Commit

Permalink
Revert "add debug info for pinned topic query"
Browse files Browse the repository at this point in the history
This reverts commit a82c99c.
  • Loading branch information
hooopo committed May 12, 2021
1 parent a82c99c commit e1fe014
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/topic_query.rb
Original file line number Diff line number Diff line change
Expand Up @@ -413,9 +413,6 @@ def prioritize_pinned_topics(topics, options)
per_page = options[:per_page] || per_page_setting
limit = per_page unless options[:limit] == false
page = options[:page].to_i
Rails.logger.warn "pinned"
Rails.logger.warn "pinned -> #{pinned_topics.to_a.map{|x| x.id}}"
Rails.logger.warn pinned_topics.to_sql

if page == 0
(pinned_topics + unpinned_topics)[0...limit] if limit
Expand All @@ -440,7 +437,6 @@ def create_list(filter, options = {}, topics = nil)

topics = topics.to_a


if options[:preload_posters]
user_ids = []
topics.each do |ft|
Expand Down

0 comments on commit e1fe014

Please sign in to comment.