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.

18 lines
541 B

  1. # frozen_string_literal: true
  2. class ActivityPub::FollowsController < Api::BaseController
  3. include SignatureVerification
  4. def show
  5. render(
  6. json: FollowRequest.includes(:account).references(:account).find_by!(
  7. id: params.require(:id),
  8. accounts: { domain: nil, username: params.require(:account_username) },
  9. target_account: signed_request_account
  10. ),
  11. serializer: ActivityPub::FollowSerializer,
  12. adapter: ActivityPub::Adapter,
  13. content_type: 'application/activity+json'
  14. )
  15. end
  16. end