continue;
}
- $this->saveStatus($status, $flink);
+ $notice = $this->saveStatus($status);
+
+ if (!empty($notice)) {
+ Inbox::insertNotice($flink->user_id, $notice->id);
+ }
}
// Okay, record the time we synced with Twitter for posterity
$flink->update();
}
- function saveStatus($status, $flink=null)
+ function saveStatus($status)
{
$profile = $this->ensureProfile($status->user);
Event::handle('EndNoticeSave', array($notice));
}
- if (!empty($flink)) {
- Inbox::insertNotice($flink->user_id, $notice->id);
- }
$notice->blowOnInsert();
return $notice;