Sha256: 2d2c0ff5731d0bd174519c1154afdb44ee20be953aa5643c4244a1dcb2918602
Contents?: true
Size: 808 Bytes
Versions: 43
Compression:
Stored size: 808 Bytes
Contents
class WebfingerController < ActionController::Metal include ActionController::Redirecting include Rails.application.routes.url_helpers def index actor = Actor.find_by_webfinger!(params[:q]) finger = Proudhon::Finger.new( :subject => actor.webfinger_uri, :alias => [polymorphic_url(actor.subject)], :links => { avatar: root_url + actor.logo.url(:original), profile: polymorphic_url([actor.subject, :profile]), updates_from: polymorphic_url([actor.subject, :activities], :format => :atom), salmon: salmon_url(actor.slug), replies: salmon_url(actor.slug), mention: salmon_url(actor.slug), magic_key: actor.magic_public_key }) self.response_body = finger.to_xml self.content_type = Mime::XML end end
Version data entries
43 entries across 43 versions & 2 rubygems