diff options
author | Evan Prodromou <evan@status.net> | 2010-01-20 16:16:22 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-01-20 16:16:22 -0500 |
commit | 1d37a6c428ac2d89b0fa01f73a9e6e05a412b605 (patch) | |
tree | f1563c5bb507ccf5340de823ad8fdd5bfd76998a /plugins/PubSubHubBub | |
parent | 365b0b1e14a34ed433ac169d5cfb6066f11919ba (diff) |
correctly get replies for a notice in PuSH plugin
Diffstat (limited to 'plugins/PubSubHubBub')
-rw-r--r-- | plugins/PubSubHubBub/PubSubHubBubPlugin.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/PubSubHubBub/PubSubHubBubPlugin.php b/plugins/PubSubHubBub/PubSubHubBubPlugin.php index f13408629..96500404b 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){ |