FullNoticeStream selects all verbs.

This commit is contained in:
Mikael Nordfeldth 2016-02-16 02:21:39 +01:00
parent 2d1b70c94d
commit 46829c6d3c
4 changed files with 14 additions and 3 deletions

11
lib/fullnoticestream.php Normal file
View File

@ -0,0 +1,11 @@
<?php
if (!defined('GNUSOCIAL')) { exit(1); }
/**
* Class for notice streams that does not filter anything out.
*/
class FullNoticeStream extends NoticeStream
{
protected $selectVerbs = [];
}

View File

@ -72,7 +72,7 @@ class InboxNoticeStream extends ScopingNoticeStream
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0 * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
* @link http://status.net/ * @link http://status.net/
*/ */
class RawInboxNoticeStream extends NoticeStream class RawInboxNoticeStream extends FullNoticeStream
{ {
protected $target = null; protected $target = null;
protected $inbox = null; protected $inbox = null;

View File

@ -23,7 +23,7 @@ class NetworkPublicNoticeStream extends ScopingNoticeStream
* @link http://status.net/ * @link http://status.net/
*/ */
class RawNetworkPublicNoticeStream extends NoticeStream class RawNetworkPublicNoticeStream extends FullNoticeStream
{ {
function getNoticeIds($offset, $limit, $since_id, $max_id) function getNoticeIds($offset, $limit, $since_id, $max_id)
{ {

View File

@ -62,7 +62,7 @@ class PublicNoticeStream extends ScopingNoticeStream
* @link http://status.net/ * @link http://status.net/
*/ */
class RawPublicNoticeStream extends NoticeStream class RawPublicNoticeStream extends FullNoticeStream
{ {
function getNoticeIds($offset, $limit, $since_id, $max_id) function getNoticeIds($offset, $limit, $since_id, $max_id)
{ {