Change inboxes to have 1000 items rather than last full month

This commit is contained in:
Evan Prodromou 2009-01-19 21:37:31 -05:00
parent 235d458395
commit d1cbd75636

View File

@ -78,11 +78,11 @@ foreach ($ids as $id) {
'FROM subscription JOIN notice ON subscription.subscribed = notice.profile_id ' .
'WHERE subscription.subscriber = ' . $user->id . ' ' .
'AND notice.created >= subscription.created ' .
'AND now() - notice.created < ' . (7 * 24 * 3600) . ' ' .
'AND NOT EXISTS (SELECT user_id, notice_id ' .
'FROM notice_inbox ' .
'WHERE user_id = ' . $user->id . ' ' .
'AND notice_id = notice.id)');
'AND notice_id = notice.id) ' .
'LIMIT 0, 1000');
if (is_null($result) || $result === false) {
common_log_db_error($inbox, 'INSERT', __FILE__);