mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 03:18:23 +00:00
BUG/PERF: Stop shipping PM stats when not needed
This commit is contained in:
parent
7431c6ac3b
commit
abeabfb40f
@ -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…
x
Reference in New Issue
Block a user