diff options
Diffstat (limited to 'users/lib')
-rw-r--r-- | users/lib/.webfinger.rb.swp | bin | 12288 -> 0 bytes | |||
-rw-r--r-- | users/lib/webfinger/host_meta_presenter.rb | 9 |
2 files changed, 9 insertions, 0 deletions
diff --git a/users/lib/.webfinger.rb.swp b/users/lib/.webfinger.rb.swp Binary files differdeleted file mode 100644 index 09528c6..0000000 --- a/users/lib/.webfinger.rb.swp +++ /dev/null diff --git a/users/lib/webfinger/host_meta_presenter.rb b/users/lib/webfinger/host_meta_presenter.rb index 3901a28..b48729c 100644 --- a/users/lib/webfinger/host_meta_presenter.rb +++ b/users/lib/webfinger/host_meta_presenter.rb @@ -14,4 +14,13 @@ class Webfinger::HostMetaPresenter def webfinger_template(path = 'webfinger', query_param='q') "#{subject}/#{path}?#{query_param}={uri}" end + + def to_json(options) + { + subject: subject, + links: { + lrdd: { type: 'application/xrd+xml', template: webfinger_template } + } + }.to_json(options) + end end |