Move common module inclusion in sub classes to ActivityPub::BaseController
(#29560)
This commit is contained in:
parent
2e91a9bd34
commit
7720c684c5
8 changed files with 10 additions and 16 deletions
|
@ -6,6 +6,8 @@ class InstanceActorsController < ActivityPub::BaseController
|
|||
serialization_scope nil
|
||||
|
||||
before_action :set_account
|
||||
|
||||
skip_before_action :authenticate_user! # From `AccountOwnedConcern`
|
||||
skip_before_action :require_functional!
|
||||
skip_before_action :update_user_sign_in
|
||||
|
||||
|
@ -16,6 +18,11 @@ class InstanceActorsController < ActivityPub::BaseController
|
|||
|
||||
private
|
||||
|
||||
# Skips various `before_action` from `AccountOwnedConcern`
|
||||
def account_required?
|
||||
false
|
||||
end
|
||||
|
||||
def set_account
|
||||
@account = Account.representative
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue