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.

20 lines
548 B

  1. # frozen_string_literal: true
  2. class InstanceActorsController < ApplicationController
  3. include AccountControllerConcern
  4. def show
  5. expires_in 10.minutes, public: true
  6. render json: @account, content_type: 'application/activity+json', serializer: ActivityPub::ActorSerializer, adapter: ActivityPub::Adapter, fields: restrict_fields_to
  7. end
  8. private
  9. def set_account
  10. @account = Account.find(-99)
  11. end
  12. def restrict_fields_to
  13. %i(id type preferred_username inbox public_key endpoints url manually_approves_followers)
  14. end
  15. end