api: don't include can_comment_vote? on users.
This triggers multiple comment vote count(*) calls when doing things like /posts.json?only=uploader and the current user is in the set of uploaders.
This commit is contained in:
@@ -540,7 +540,7 @@ class User < ApplicationRecord
|
||||
custom_style favorite_count api_regen_multiplier
|
||||
api_burst_limit remaining_api_limit statement_timeout
|
||||
favorite_group_limit favorite_limit tag_query_limit
|
||||
can_comment_vote? can_remove_from_pools? is_comment_limited?
|
||||
can_remove_from_pools? is_comment_limited?
|
||||
can_comment? max_saved_searches theme
|
||||
]
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user