You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
378 B
21 lines
378 B
# frozen_string_literal: true
|
|
|
|
module RemoteAccountControllerConcern
|
|
extend ActiveSupport::Concern
|
|
|
|
included do
|
|
layout 'public'
|
|
before_action :set_account
|
|
before_action :check_account_suspension
|
|
end
|
|
|
|
private
|
|
|
|
def set_account
|
|
@account = Account.find_remote!(params[:acct])
|
|
end
|
|
|
|
def check_account_suspension
|
|
gone if @account.suspended?
|
|
end
|
|
end
|
|
|