aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/follower_accounts_controller.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2020-12-14 01:41:13 +0100
committerEugen Rochko <eugen@zeonfederated.com>2021-02-16 03:33:32 +0100
commitdd512c140bee24446d1ddab901d04b51a72a2d86 (patch)
treec1e2d1beb1058ccc395d65fe586929b4de8add55 /app/controllers/follower_accounts_controller.rb
parent9c273c2a59755a46ff3933470b02df857537a4af (diff)
downloadmastodon-dd512c140bee24446d1ddab901d04b51a72a2d86.tar
mastodon-dd512c140bee24446d1ddab901d04b51a72a2d86.tar.gz
mastodon-dd512c140bee24446d1ddab901d04b51a72a2d86.tar.bz2
mastodon-dd512c140bee24446d1ddab901d04b51a72a2d86.zip
Diffstat (limited to 'app/controllers/follower_accounts_controller.rb')
-rw-r--r--app/controllers/follower_accounts_controller.rb9
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)