Commit 34ebf858c6bae97fab78d8ea65eadadccb5883f6
1 parent
0a7afb0f
Exists in
oauth_external_login
and in
1 other branch
federation: Fix url for resources in webfinger response
Showing
1 changed file
with
1 additions
and
2 deletions
Show diff stats
app/api/federation/webfinger.rb
... | ... | @@ -40,9 +40,8 @@ def request_acct? |
40 | 40 | end |
41 | 41 | |
42 | 42 | def acct_hash |
43 | - rails = Rails::Server.new | |
44 | 43 | acct = Hash.new{|hash, key| hash[key] = Hash.new{|hash, key| hash[key] = Array.new}} |
45 | - url = rails.options[:Host] + ':' + rails.options[:Port].to_s + '/' | |
44 | + url = request.host + '/' | |
46 | 45 | person = Person.find_by_identifier(extract_person_identifier) |
47 | 46 | |
48 | 47 | if person.nil? | ... | ... |