threw out the baby with the bathwater

darcs-hash:20081114080853-84dde-5e9d1e2fa3af671036be98d79a82ddc4e8a52a05.gz
This commit is contained in:
Evan Prodromou 2008-11-14 03:08:53 -05:00
parent 761d4eeaaf
commit 5976d2b202
1 changed files with 1 additions and 0 deletions

View File

@ -50,6 +50,7 @@ $cache = common_memcache();
while ($user->fetch()) {
common_log(LOG_INFO, 'Updating inbox for user ' . $user->id);
$user->query('BEGIN');
$inbox = new Notice_inbox();
$result = $inbox->query('INSERT LOW_PRIORITY INTO notice_inbox (user_id, notice_id, created) ' .
'SELECT ' . $user->id . ', notice.id, notice.created ' .
'FROM subscription JOIN notice ON subscription.subscribed = notice.profile_id ' .