Sha256: 6c3a367adeaed12ea99501d6b4beb240e5ea1bfaf8c101394ac8e0a3f44f3440

Contents?: true

Size: 453 Bytes

Versions: 1

Compression:

Stored size: 453 Bytes

Contents

json.subject params[:resource]

links = [
  # Federation actor URL
  {
    rel:  'self',
    type: 'application/activity+json',
    href: @user.actor.federated_url,
  },
]

# User profile URL if configured
# TODO: Add a profile controller/action in dummy to test this
if @user.actor.profile_url
  links.push rel:  'https://webfinger.net/rel/profile-page',
             type: 'text/html',
             href: @user.actor.profile_url
end

json.links links

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
federails-0.1.0 app/views/federails/server/web_finger/find.json.jbuilder