diff options
Diffstat (limited to 'app/controllers/follower_accounts_controller.rb')
-rw-r--r-- | app/controllers/follower_accounts_controller.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/app/controllers/follower_accounts_controller.rb b/app/controllers/follower_accounts_controller.rb index ff4df2adf..ebdefcf9b 100644 --- a/app/controllers/follower_accounts_controller.rb +++ b/app/controllers/follower_accounts_controller.rb @@ -2,6 +2,7 @@ class FollowerAccountsController < ApplicationController include AccountControllerConcern + include WebAppControllerConcern include SignatureVerification before_action :require_signature!, if: -> { request.format == :json && authorized_fetch_mode? } @@ -14,10 +15,6 @@ class FollowerAccountsController < ApplicationController respond_to do |format| format.html do expires_in 0, public: true unless user_signed_in? - - next if @account.user_hides_network? - - follows end format.json do @@ -36,6 +33,10 @@ class FollowerAccountsController < ApplicationController private + def username_param + params[:username] || params[:account_username] + end + def follows return @follows if defined?(@follows) |