diff options
author | Evan Prodromou <evan@status.net> | 2010-01-09 13:56:54 -0800 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-01-09 13:56:54 -0800 |
commit | 9cfea6d051372cb1c7d177b2a0eb26f773821238 (patch) | |
tree | 40a6944377018a125a762e6e90bec0cfa5411c44 /plugins/Realtime/RealtimePlugin.php | |
parent | 96e51dad4b9ff2208cfef2e578e4bc85a8937680 (diff) |
use whoGets() for realtime plugin
Diffstat (limited to 'plugins/Realtime/RealtimePlugin.php')
-rw-r--r-- | plugins/Realtime/RealtimePlugin.php | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/plugins/Realtime/RealtimePlugin.php b/plugins/Realtime/RealtimePlugin.php index 21e465b53..89640f5be 100644 --- a/plugins/Realtime/RealtimePlugin.php +++ b/plugins/Realtime/RealtimePlugin.php @@ -154,14 +154,11 @@ 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); - $paths[] = array('all', $user->nickname); - } + foreach (array_keys($ni) as $user_id) { + $user = User::staticGet('id', $user_id); + $paths[] = array('all', $user->nickname); } // Add to the replies timeline |