From 97cc277040f32edcfc57270f6a5ab27e99d4dc3b Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sun, 25 Mar 2012 14:21:11 -0400 Subject: [PATCH] Take out unnecessary HideNoticeStream --- lib/popularnoticestream.php | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/lib/popularnoticestream.php b/lib/popularnoticestream.php index 794fd87557..eeba541238 100644 --- a/lib/popularnoticestream.php +++ b/lib/popularnoticestream.php @@ -49,30 +49,13 @@ class PopularNoticeStream extends ScopingNoticeStream { function __construct($profile=null) { - parent::__construct(new HideSilencedStream(new CachingNoticeStream(new RawPopularNoticeStream(), - 'popular', - false)), + parent::__construct(new CachingNoticeStream(new RawPopularNoticeStream(), + 'popular', + false), $profile); } } -class HideSilencedStream extends FilteringNoticeStream -{ - /** - * Only return notices where the profile is in scope - * - * @param Notice $notice The notice to check - * - * @return boolean whether to include the notice - */ - - function filter($notice) - { - $author = $notice->getProfile(); - return !$author->isSilenced(); - } -} - class RawPopularNoticeStream extends NoticeStream { function getNoticeIds($offset, $limit, $since_id, $max_id)