correctly get replies for a notice in PuSH plugin
This commit is contained in:
parent
365b0b1e14
commit
1d37a6c428
|
@ -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){
|
||||
|
|
Loading…
Reference in New Issue
Block a user