diff --git a/app/serializers/topic_view_serializer.rb b/app/serializers/topic_view_serializer.rb index 9cda8e1c01a..821ae8329f3 100644 --- a/app/serializers/topic_view_serializer.rb +++ b/app/serializers/topic_view_serializer.rb @@ -215,8 +215,8 @@ class TopicViewSerializer < ApplicationSerializer object.topic_user.try(:bookmarked) end - def include_pending_posts_count - scope.user.staff? && NewPostManager.queue_enabled? + def include_pending_posts_count? + scope.is_staff? && NewPostManager.queue_enabled? end end