2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-11 21:04:42 +08:00

FIX: moderator_action posts should be suppressed from digests

This commit is contained in:
Arpit Jalan 2016-05-03 16:43:21 +05:30
parent 706ea28ef9
commit c069488560

View file

@ -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?