use whoGets() for realtime plugin
This commit is contained in:
parent
96e51dad4b
commit
9cfea6d051
|
@ -154,15 +154,12 @@ class RealtimePlugin extends Plugin
|
|||
// Add to inbox timelines
|
||||
// XXX: do a join
|
||||
|
||||
$inbox = new Notice_inbox();
|
||||
$inbox->notice_id = $notice->id;
|
||||
$ni = $notice->whoGets();
|
||||
|
||||
if ($inbox->find()) {
|
||||
while ($inbox->fetch()) {
|
||||
$user = User::staticGet('id', $inbox->user_id);
|
||||
foreach (array_keys($ni) as $user_id) {
|
||||
$user = User::staticGet('id', $user_id);
|
||||
$paths[] = array('all', $user->nickname);
|
||||
}
|
||||
}
|
||||
|
||||
// Add to the replies timeline
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user