MS IZ doing the friend querying correctly in user
This commit is contained in:
parent
4243d8efca
commit
82578ad80c
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ class User
|
|||
|
||||
######### Friend Requesting
|
||||
def send_friend_request_to(friend_url)
|
||||
unless self.friends.where(:url => friend_url).first
|
||||
unless self.friends.find{ |x| x.url == friend_url}
|
||||
p = Request.instantiate(:to => friend_url, :from => self.person)
|
||||
if p.save
|
||||
p.push_to_url friend_url
|
||||
|
|
|
|||
Loading…
Reference in a new issue