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:
evazion
2020-02-16 04:58:11 -06:00
parent 835cc23f66
commit 1370b034d1

View File

@@ -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