Check for friending yourself in requests helper

This commit is contained in:
Raphael 2010-08-16 11:55:32 -07:00
parent 00a9bd820b
commit b37b8303d3

View file

@ -29,7 +29,7 @@ module RequestsHelper
puts request.host
if identifier.include?(request.host)
person = Person.by_webfinger identifier
action = :friend
action = (person == current_user.person ? :none : :friend)
url = person.owner.receive_url
else
f = Redfinger.finger(identifier)