Sha256: 0784716ec3238c0a238ec3bb2bf4e7ac70422b4788339ebf63e738f0a279360e

Contents?: true

Size: 587 Bytes

Versions: 2

Compression:

Stored size: 587 Bytes

Contents

json.subject params[:resource]

links = [
  # Federation actor URL
  {
    rel:  'self',
    type: Mime[:activitypub].to_s,
    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

# Remote following
links.push rel:      'http://ostatus.org/schema/1.0/subscribe',
           template: "#{remote_follow_url}?uri={uri}"

json.links links

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
federails-0.3.0 app/views/federails/server/web_finger/find.jrd.jbuilder
federails-0.2.0 app/views/federails/server/web_finger/find.jrd.jbuilder