]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/filteringnoticestream.php
rename config option site/logdebug to log/debugtrace
[quix0rs-gnu-social.git] / lib / filteringnoticestream.php
index b4ec6687bb7c92831ed30114d0de9847cfdbab45..c1edfc63877aad809f6f6d9efe9a5ddd01d32f7e 100644 (file)
@@ -49,12 +49,15 @@ abstract class FilteringNoticeStream extends NoticeStream
 {
     protected $upstream;
 
-    function __construct($upstream)
+    function __construct(NoticeStream $upstream)
     {
         $this->upstream = $upstream;
     }
 
-    abstract function filter($notice);
+    /**
+     * @return boolean  true if we allow it, false if we deny it
+     */
+    abstract protected function filter(Notice $notice);
 
     function getNoticeIds($offset, $limit, $since_id, $max_id)
     {