mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-23 08:34:13 -05:00
Fix: Fix: Return 0 to AP Request if Hide Followers Count
This commit is contained in:
parent
114656b195
commit
d197040593
@ -60,7 +60,7 @@ class FollowerAccountsController < ApplicationController
|
|||||||
|
|
||||||
def collection_presenter
|
def collection_presenter
|
||||||
options = { type: :ordered }
|
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?
|
if page_requested?
|
||||||
ActivityPub::CollectionPresenter.new(
|
ActivityPub::CollectionPresenter.new(
|
||||||
id: account_followers_url(@account, page: params.fetch(:page, 1)),
|
id: account_followers_url(@account, page: params.fetch(:page, 1)),
|
||||||
|
Loading…
Reference in New Issue
Block a user