fix the streams for email summary

This commit is contained in:
Evan Prodromou 2011-06-07 17:38:24 -04:00
parent a10edb3183
commit 40cfc5490a

View File

@ -102,7 +102,9 @@ class UserEmailSummaryHandler extends QueueHandler
return true;
}
$notice = $user->ownFriendsTimeline(0, self::MAX_NOTICES, $since_id);
$stream = new InboxNoticeStream($user, $user->getProfile());
$notice = $stream->getNotices(0, self::MAX_NOTICES, $since_id);
if (empty($notice) || $notice->N == 0) {
common_log(LOG_WARNING, sprintf('Not sending email summary for user %s; no notices.', $user_id));