Sha256: 5a0cd7c0c612d159917d98dd38fce8322a40730d28d76eaca802b97713a59246

Contents?: true

Size: 617 Bytes

Versions: 1

Compression:

Stored size: 617 Bytes

Contents

json.subject params[:resource]

links = [
  # Federation actor URL
  {
    rel:  'self',
    type: Mime[:activitypub].to_s,
    href: @user.federails_actor.federated_url,
  },
]

# User profile URL if configured
# TODO: Add a profile controller/action in dummy to test this
if @user.federails_actor.profile_url
  links.push rel:  'https://webfinger.net/rel/profile-page',
             type: 'text/html',
             href: @user.federails_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

1 entries across 1 versions & 1 rubygems

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