Merge branch 'friend-refactor' of github.com:diaspora/diaspora_rails into friend-refactor
This commit is contained in:
commit
4b102de1db
1 changed files with 1 additions and 1 deletions
|
|
@ -77,7 +77,7 @@ class User
|
|||
def receive_friend_request(friend_request)
|
||||
Rails.logger.debug("receiving friend request #{friend_request.to_json}")
|
||||
|
||||
if Request.where(:callback_url => person.url, :destination_url => person.url).first
|
||||
if Request.where(:callback_url => person.receive_url, :destination_url => person.receive_url).first
|
||||
activate_friend friend_request.person
|
||||
Rails.logger.debug("#{self.real_name}'s friend request has been accepted")
|
||||
friend_request.destroy
|
||||
|
|
|
|||
Loading…
Reference in a new issue