use whoGets() for realtime plugin

This commit is contained in:
Evan Prodromou 2010-01-09 13:56:54 -08:00
parent 96e51dad4b
commit 9cfea6d051

View File

@ -154,14 +154,11 @@ class RealtimePlugin extends Plugin
// Add to inbox timelines // Add to inbox timelines
// XXX: do a join // XXX: do a join
$inbox = new Notice_inbox(); $ni = $notice->whoGets();
$inbox->notice_id = $notice->id;
if ($inbox->find()) { foreach (array_keys($ni) as $user_id) {
while ($inbox->fetch()) { $user = User::staticGet('id', $user_id);
$user = User::staticGet('id', $inbox->user_id); $paths[] = array('all', $user->nickname);
$paths[] = array('all', $user->nickname);
}
} }
// Add to the replies timeline // Add to the replies timeline