From: Evan Prodromou Date: Wed, 20 Jan 2010 21:16:22 +0000 (-0500) Subject: correctly get replies for a notice in PuSH plugin X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1d37a6c428ac2d89b0fa01f73a9e6e05a412b605;p=quix0rs-gnu-social.git correctly get replies for a notice in PuSH plugin --- diff --git a/plugins/PubSubHubBub/PubSubHubBubPlugin.php b/plugins/PubSubHubBub/PubSubHubBubPlugin.php index f134086290..96500404bc 100644 --- a/plugins/PubSubHubBub/PubSubHubBubPlugin.php +++ b/plugins/PubSubHubBub/PubSubHubBubPlugin.php @@ -100,11 +100,15 @@ class PubSubHubBubPlugin extends Plugin $feeds[]=common_local_url('ApiTimelineFriends', array('id' => $user->nickname, 'format'=>'atom')); } + $replies = $notice->getReplies(); + //feed of user replied to - if($notice->reply_to){ - $user = User::staticGet('id',$notice->reply_to); + foreach ($replies as $recipient) { + $user = User::staticGet('id',$recipient); + if (!empty($user)) { $feeds[]=common_local_url('ApiTimelineMentions',array('id' => $user->nickname,'format'=>'rss')); $feeds[]=common_local_url('ApiTimelineMentions',array('id' => $user->nickname,'format'=>'atom')); + } } foreach(array_unique($feeds) as $feed){