mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-02-17 12:11:16 -05:00
FIX: moderator_action posts should be suppressed from digests
This commit is contained in:
parent
706ea28ef9
commit
c069488560
1 changed files with 1 additions and 1 deletions
|
@ -244,7 +244,7 @@ class Topic < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def best_post
|
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
|
end
|
||||||
|
|
||||||
def has_flags?
|
def has_flags?
|
||||||
|
|
Loading…
Reference in a new issue