use Inbox in twitterstatusfetcher

This commit is contained in:
Evan Prodromou 2010-01-09 14:02:01 -08:00
parent d902de139c
commit 2db840b2f5

View File

@ -268,19 +268,7 @@ class TwitterStatusFetcher extends ParallelizingDaemon
} }
if (!Notice_inbox::pkeyGet(array('notice_id' => $notice->id, Inbox::insertNotice($flink->user_id, $notice->id);
'user_id' => $flink->user_id))) {
// Add to inbox
$inbox = new Notice_inbox();
$inbox->user_id = $flink->user_id;
$inbox->notice_id = $notice->id;
$inbox->created = $notice->created;
$inbox->source = NOTICE_INBOX_SOURCE_GATEWAY; // From a private source
$inbox->insert();
}
$notice->blowCaches(); $notice->blowCaches();