Upgrade rubocop from v1.84.0 to v1.84.2, update config, and correct offences (#37795)

This commit is contained in:
Nicholas La Roux authored and GitHub committed 2026-02-17 14:56:46 +00:00
1 parent 0b66e74426
commit 438602c488
31 files changed
+132 -129

No files matched your search

+8 -8
View File
@@ -18,14 +18,14 @@ class Api::V1::BlocksController < Api::BaseController
def paginated_blocks
@paginated_blocks ||= Block.eager_load(target_account: [:account_stat, :user])
.joins(:target_account)
.merge(Account.without_suspended)
.where(account: current_account)
.paginate_by_max_id(
limit_param(DEFAULT_ACCOUNTS_LIMIT),
params[:max_id],
params[:since_id]
)
.joins(:target_account)
.merge(Account.without_suspended)
.where(account: current_account)
.paginate_by_max_id(
limit_param(DEFAULT_ACCOUNTS_LIMIT),
params[:max_id],
params[:since_id]
)
end
def next_path