mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
BUG/PERF: Stop shipping PM stats when not needed
This commit is contained in:
parent
7431c6ac3b
commit
abeabfb40f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue