mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 17:12:45 +08:00
FIX: Do not show post notices for bots.
This commit is contained in:
parent
6f1badc7c9
commit
eed1c9e0e3
|
@ -371,7 +371,7 @@ class PostSerializer < BasicPostSerializer
|
|||
|
||||
def include_post_notice_type?
|
||||
return false if !scope.user || !scope.user.id || scope.user.id == object.user_id ||
|
||||
!object.user || object.user.anonymous? ||
|
||||
!object.user || object.user.anonymous? || object.user.bot?
|
||||
!scope.user.has_trust_level?(SiteSetting.min_post_notice_tl)
|
||||
|
||||
post_notice_type.present?
|
||||
|
|
Loading…
Reference in New Issue
Block a user