2
0

Move common module inclusion in sub classes to ActivityPub::BaseController (#29560)

This commit is contained in:
Matt Jankowski
2024-03-15 06:40:21 -04:00
committed by GitHub
parent 2e91a9bd34
commit 7720c684c5
8 changed files with 10 additions and 16 deletions

View File

@@ -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