mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-30 16:49:04 +01:00
21 lines
548 B
Ruby
21 lines
548 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
class InstanceActorsController < ApplicationController
|
||
|
include AccountControllerConcern
|
||
|
|
||
|
def show
|
||
|
expires_in 10.minutes, public: true
|
||
|
render json: @account, content_type: 'application/activity+json', serializer: ActivityPub::ActorSerializer, adapter: ActivityPub::Adapter, fields: restrict_fields_to
|
||
|
end
|
||
|
|
||
|
private
|
||
|
|
||
|
def set_account
|
||
|
@account = Account.find(-99)
|
||
|
end
|
||
|
|
||
|
def restrict_fields_to
|
||
|
%i(id type preferred_username inbox public_key endpoints url manually_approves_followers)
|
||
|
end
|
||
|
end
|