mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 03:06:53 +08:00
FIX: moderator_action posts should be suppressed from digests
This commit is contained in:
@ -244,7 +244,7 @@ class Topic < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def best_post
|
||||
posts.order('score desc nulls last').limit(1).first
|
||||
posts.where(post_type: Post.types[:regular]).order('score desc nulls last').limit(1).first
|
||||
end
|
||||
|
||||
def has_flags?
|
||||
|
Reference in New Issue
Block a user