mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
hard code best requires trust level > 0, make it configurable later
This commit is contained in:
parent
dca216ed54
commit
5e7ffd830e
1 changed files with 1 additions and 0 deletions
|
@ -180,6 +180,7 @@ class TopicView
|
|||
@index_offset = 0
|
||||
@posts = @filtered_posts.order('percent_rank asc, sort_order asc').where("post_number > 1")
|
||||
@posts = @posts.includes(:reply_to_user).includes(:topic).joins(:user).limit(max)
|
||||
@posts = @posts.where('COALESCE(users.trust_level,0) > 0')
|
||||
@posts = @posts.to_a
|
||||
@posts.sort!{|a,b| a.post_number <=> b.post_number}
|
||||
@posts
|
||||
|
|
Loading…
Reference in a new issue