diff options
author | Evan Prodromou <evan@status.net> | 2010-09-01 14:35:43 -0400 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-09-01 14:35:43 -0400 |
commit | c82b1cda825f3b84e3c3bef5474eccf8963b0475 (patch) | |
tree | e05b2c002a8a9a6a370b804afe663174b6cd43d6 /plugins/OStatus/lib | |
parent | 8f06e3b2819936d1a9fe30b1bc44759bdcd56992 (diff) |
send a salmon slap to mentioned person when we reply to a notice
Diffstat (limited to 'plugins/OStatus/lib')
-rw-r--r-- | plugins/OStatus/lib/ostatusqueuehandler.php | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/plugins/OStatus/lib/ostatusqueuehandler.php b/plugins/OStatus/lib/ostatusqueuehandler.php index 8905d2e21..5e318116a 100644 --- a/plugins/OStatus/lib/ostatusqueuehandler.php +++ b/plugins/OStatus/lib/ostatusqueuehandler.php @@ -67,6 +67,17 @@ class OStatusQueueHandler extends QueueHandler } } + if (!empty($this->notice->reply_to)) { + $replyTo = Notice::staticGet('id', $this->notice->reply_to); + if (!empty($replyTo)) { + foreach($replyTo->getReplies() as $profile_id) { + $oprofile = Ostatus_profile::staticGet('profile_id', $profile_id); + if ($oprofile) { + $this->pingReply($oprofile); + } + } + } + } return true; } @@ -161,7 +172,7 @@ class OStatusQueueHandler extends QueueHandler * Queue up direct feed update pushes to subscribers on our internal hub. * If there are a large number of subscriber sites, intermediate bulk * distribution triggers may be queued. - * + * * @param string $atom update feed, containing only new/changed items * @param HubSub $sub open query of subscribers */ |