Add admin setting to disable followers count
This commit is contained in:
		@@ -51,4 +51,8 @@ class REST::AccountSerializer < ActiveModel::Serializer
 | 
			
		||||
  def moved_and_not_nested?
 | 
			
		||||
    object.moved? && object.moved_to_account.moved_to_account_id.nil?
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def followers_count
 | 
			
		||||
    Setting.hide_followers_count ? -1 : object.followers_count
 | 
			
		||||
  end
 | 
			
		||||
end
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user