mirror of
https://github.com/diaspora/diaspora.git
synced 2026-04-29 03:01:03 -04:00
DG IZ push to wrapped to check before sending off a friend req
This commit is contained in:
@@ -26,7 +26,7 @@ class FriendRequest
|
||||
end
|
||||
|
||||
def send_off
|
||||
push_to [self.recipient]
|
||||
push_to_recipient self.recipient
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -66,6 +66,11 @@ module Diaspora
|
||||
end
|
||||
end
|
||||
|
||||
def push_to_recipient(recipient)
|
||||
if self.sender_id == User.first.id
|
||||
push_to( [recipient] )
|
||||
end
|
||||
end
|
||||
|
||||
def prep_webhook
|
||||
"<post>#{self.to_xml.to_s}</post>"
|
||||
|
||||
Reference in New Issue
Block a user