fix the streams for email summary
This commit is contained in:
parent
a10edb3183
commit
40cfc5490a
|
@ -102,7 +102,9 @@ class UserEmailSummaryHandler extends QueueHandler
|
||||||
return true;
|
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) {
|
if (empty($notice) || $notice->N == 0) {
|
||||||
common_log(LOG_WARNING, sprintf('Not sending email summary for user %s; no notices.', $user_id));
|
common_log(LOG_WARNING, sprintf('Not sending email summary for user %s; no notices.', $user_id));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user