diff options
author | Evan Prodromou <evan@status.net> | 2010-02-24 15:54:29 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-02-24 15:54:29 -0500 |
commit | 01cfe86cd27eb302a69c5d6df8eddc4893b774c3 (patch) | |
tree | 2f72a1fa1a6d5309d5f10c94667e92bfb099e771 /plugins/OStatus/lib/ostatusqueuehandler.php | |
parent | c0d13097dd96b3596b43e34e7fff0acd97a838f0 (diff) | |
parent | 0c7844734edbed42c2ea3046dc1418cba828e583 (diff) |
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into testing
Diffstat (limited to 'plugins/OStatus/lib/ostatusqueuehandler.php')
-rw-r--r-- | plugins/OStatus/lib/ostatusqueuehandler.php | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/plugins/OStatus/lib/ostatusqueuehandler.php b/plugins/OStatus/lib/ostatusqueuehandler.php index c1e50bffa..0da85600f 100644 --- a/plugins/OStatus/lib/ostatusqueuehandler.php +++ b/plugins/OStatus/lib/ostatusqueuehandler.php @@ -83,23 +83,11 @@ class OStatusQueueHandler extends QueueHandler function pingReply($oprofile) { if ($this->user) { - if (!empty($oprofile->salmonuri)) { - // For local posts, send a Salmon ping to the mentioned - // remote user or group. - // @fixme as an optimization we can skip this if the - // remote profile is subscribed to the author. - - common_log(LOG_INFO, "Prepping to send notice '{$this->notice->uri}' to remote profile '{$oprofile->uri}'."); - - $xml = '<?xml version="1.0" encoding="UTF-8" ?' . '>'; - $xml .= $this->notice->asAtomEntry(true, true); - - $data = array('salmonuri' => $oprofile->salmonuri, - 'entry' => $xml); - - $qm = QueueManager::get(); - $qm->enqueue($data, 'salmonout'); - } + // For local posts, send a Salmon ping to the mentioned + // remote user or group. + // @fixme as an optimization we can skip this if the + // remote profile is subscribed to the author. + $oprofile->notifyDeferred($this->notice); } } |