]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Take out unnecessary HideNoticeStream
authorEvan Prodromou <evan@status.net>
Sun, 25 Mar 2012 18:21:11 +0000 (14:21 -0400)
committerEvan Prodromou <evan@status.net>
Sun, 25 Mar 2012 18:21:22 +0000 (14:21 -0400)
lib/popularnoticestream.php

index 794fd87557c2597c18671ead07ed5ec4d94cec23..eeba5412388324d1863c536e03b19c39d445079f 100644 (file)
@@ -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)