DG IZ local person bug

This commit is contained in:
ilya 2010-08-17 10:58:50 -07:00
parent 0af6f7b0e5
commit 7316c6073c

View file

@ -30,7 +30,7 @@ module RequestsHelper
url = nil url = nil
local_person = Person.by_webfinger identifier local_person = Person.by_webfinger identifier
if local_person if local_person
action = (local_person == current_user.local_person ? :none : :friend) action = (local_person == current_user.person ? :none : :friend)
url = local_person.receive_url url = local_person.receive_url
elsif !(identifier.include?(request.host) || identifier.include?("localhost")) elsif !(identifier.include?(request.host) || identifier.include?("localhost"))
f = Redfinger.finger(identifier) f = Redfinger.finger(identifier)