Check for friending yourself in requests helper
This commit is contained in:
parent
00a9bd820b
commit
b37b8303d3
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue