This commit is contained in:
Eugen Rochko 2020-12-14 01:41:13 +01:00
parent 9c273c2a59
commit dd512c140b
81 changed files with 524 additions and 561 deletions

View file

@ -2,6 +2,7 @@
class FollowingAccountsController < ApplicationController
include AccountControllerConcern
include WebAppControllerConcern
include SignatureVerification
before_action :require_signature!, if: -> { request.format == :json && authorized_fetch_mode? }
@ -14,10 +15,6 @@ class FollowingAccountsController < 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 FollowingAccountsController < ApplicationController
private
def username_param
params[:username] || params[:account_username]
end
def follows
return @follows if defined?(@follows)