Revert "FullNoticeStream selects all verbs"

It appears this was added to display "tombstones" of deleted notices.
However, it has other side-effects and the concept of keeping them visible has
not been adopted by the wider fediverse.
This commit is contained in:
Alexei Sorokin 2020-06-30 23:03:41 +03:00 committed by Diogo Peralta Cordeiro
parent 26115482ef
commit 819ece93aa
4 changed files with 3 additions and 14 deletions

View File

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

View File

@ -58,7 +58,7 @@ class InboxNoticeStream extends ScopingNoticeStream
* @copyright 2014 Free Software Foundation, Inc http://www.fsf.org * @copyright 2014 Free Software Foundation, Inc http://www.fsf.org
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
*/ */
class RawInboxNoticeStream extends FullNoticeStream class RawInboxNoticeStream extends NoticeStream
{ {
protected $target = null; protected $target = null;
protected $inbox = null; protected $inbox = null;

View File

@ -46,7 +46,7 @@ class NetworkPublicNoticeStream extends ModeratedNoticeStream
* @copyright 2011 StatusNet, Inc. * @copyright 2011 StatusNet, Inc.
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
*/ */
class RawNetworkPublicNoticeStream extends FullNoticeStream class RawNetworkPublicNoticeStream extends NoticeStream
{ {
public function getNoticeIds($offset, $limit, $since_id, $max_id) public function getNoticeIds($offset, $limit, $since_id, $max_id)
{ {

View File

@ -60,7 +60,7 @@ class PublicNoticeStream extends ModeratedNoticeStream
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
*/ */
class RawPublicNoticeStream extends FullNoticeStream class RawPublicNoticeStream extends NoticeStream
{ {
public function getNoticeIds($offset, $limit, $since_id, $max_id) public function getNoticeIds($offset, $limit, $since_id, $max_id)
{ {