blob: e86cd2d6e2b24e5b34648088562f27720ef9dfa7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
class WebfingerController < ApplicationController
layout false
def host_meta
@host_meta = Webfinger::HostMetaPresenter.new(request)
end
def search
username = params[:q].split('@')[0].to_s.downcase
user = User.find_by_login(username)
@subject = Webfinger::UserPresenter.new(user, request)
end
end
|