Check for local person before destroying accepted request

This commit is contained in:
Raphael 2010-08-16 12:26:15 -07:00
parent d7a9c3c087
commit fb8d3b3e85

View file

@ -66,10 +66,10 @@ class User
request
end
def dispatch_friend_acceptance request
def dispatch_friend_acceptance(request)
request.push_to_url(request.callback_url)
request.destroy
end
request.destroy unless request.callback_url.include? user.url
end
def accept_and_respond(friend_request_id, group_id)
dispatch_friend_acceptance(accept_friend_request(friend_request_id, group_id))