BUG/PERF: Stop shipping PM stats when not needed

This commit is contained in:
Sam 2015-09-10 17:18:43 +10:00
parent 7431c6ac3b
commit abeabfb40f
1 changed files with 1 additions and 1 deletions

View File

@ -270,7 +270,7 @@ class UserSerializer < BasicUserSerializer
MutedUser.where(user_id: object.id).joins(:muted_user).pluck(:username)
end
def include_private_message_stats?
def include_private_messages_stats?
can_edit && !(omit_stats == true)
end