From d197040593575f3538cbd5c9ee33e2ebb3e0ec33 Mon Sep 17 00:00:00 2001 From: atsu1125 Date: Sun, 20 Aug 2023 00:02:04 +0900 Subject: [PATCH] Fix: Fix: Return 0 to AP Request if Hide Followers Count --- app/controllers/follower_accounts_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/follower_accounts_controller.rb b/app/controllers/follower_accounts_controller.rb index 1121401947..baa0223476 100644 --- a/app/controllers/follower_accounts_controller.rb +++ b/app/controllers/follower_accounts_controller.rb @@ -60,7 +60,7 @@ class FollowerAccountsController < ApplicationController def collection_presenter options = { type: :ordered } - options[:size] = (Setting.hide_followers_count || @account.user&.setting_hide_followers_count) ? 0 : @account.followers_count + options[:size] = Setting.hide_followers_count || @account.user&.setting_hide_followers_count ? 0 : @account.followers_count if page_requested? ActivityPub::CollectionPresenter.new( id: account_followers_url(@account, page: params.fetch(:page, 1)),