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