MS adding downcase to webfinger lookup
This commit is contained in:
parent
e2fc48c9ff
commit
2be0cca2cd
1 changed files with 1 additions and 1 deletions
|
|
@ -78,7 +78,7 @@ class Person
|
||||||
|
|
||||||
def self.by_webfinger( identifier, opts = {})
|
def self.by_webfinger( identifier, opts = {})
|
||||||
#need to check if this is a valid email structure, maybe should do in JS
|
#need to check if this is a valid email structure, maybe should do in JS
|
||||||
local_person = Person.first(:diaspora_handle => identifier.gsub('acct:', ''))
|
local_person = Person.first(:diaspora_handle => identifier.gsub('acct:', '').to_s.downcase)
|
||||||
|
|
||||||
if local_person
|
if local_person
|
||||||
Rails.logger.info("Do not need to webfinger, found a local person #{local_person.real_name}")
|
Rails.logger.info("Do not need to webfinger, found a local person #{local_person.real_name}")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue