DEV: Fix build.

DEV: Fix build.

Follow-up to eed1c9e0e3a168eceed34cadece5af2f38215a8d.

diff --git a/app/serializers/post_serializer.rb b/app/serializers/post_serializer.rb
index f7a683b..703d312 100644
--- a/app/serializers/post_serializer.rb
+++ b/app/serializers/post_serializer.rb
@@ -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.bot?
+                    !object.user || object.user.anonymous? || object.user.bot? ||
                     !scope.user.has_trust_level?(SiteSetting.min_post_notice_tl)
 
     post_notice_type.present?

GitHub sha: f2c6a160

1 Like