mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 07:06:47 +08:00
remove moderator status posts from best feed
This commit is contained in:
@ -177,6 +177,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('posts.post_type <> ?', Post.types[:moderator_action])
|
||||
@posts = @posts.to_a
|
||||
@posts.sort!{|a,b| a.post_number <=> b.post_number}
|
||||
@posts
|
||||
|
Reference in New Issue
Block a user