]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fix the streams for email summary
authorEvan Prodromou <evan@status.net>
Tue, 7 Jun 2011 21:38:24 +0000 (17:38 -0400)
committerEvan Prodromou <evan@status.net>
Tue, 7 Jun 2011 21:38:24 +0000 (17:38 -0400)
plugins/EmailSummary/useremailsummaryhandler.php

index e2a7700f9e46bccc1affefd8b130dc3cb804bc4c..2cdacd40b1ae2c23413eefcd0a1498a876cbf046 100644 (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));