]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
FullNoticeStream selects all verbs.
authorMikael Nordfeldth <mmn@hethane.se>
Tue, 16 Feb 2016 01:21:39 +0000 (02:21 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Tue, 16 Feb 2016 01:21:39 +0000 (02:21 +0100)
lib/fullnoticestream.php [new file with mode: 0644]
lib/inboxnoticestream.php
lib/networkpublicnoticestream.php
lib/publicnoticestream.php

diff --git a/lib/fullnoticestream.php b/lib/fullnoticestream.php
new file mode 100644 (file)
index 0000000..8433c18
--- /dev/null
@@ -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 = [];
+}
index d90c525bf8c542d2150b4e18e9b77fca36df871d..ccf0f460c971adfde9f5cfd2f71712a633cfff30 100644 (file)
@@ -72,7 +72,7 @@ class InboxNoticeStream extends ScopingNoticeStream
  * @license   http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
  * @link      http://status.net/
  */
-class RawInboxNoticeStream extends NoticeStream
+class RawInboxNoticeStream extends FullNoticeStream
 {
     protected $target  = null;
     protected $inbox = null;
index 9a10c2898833d2aea93cb6087a3beb9b94bf678f..bd4da5d0751e5ba4c913c5ca043df8a9e436ffa6 100644 (file)
@@ -23,7 +23,7 @@ class NetworkPublicNoticeStream extends ScopingNoticeStream
  * @link      http://status.net/
  */
 
-class RawNetworkPublicNoticeStream extends NoticeStream
+class RawNetworkPublicNoticeStream extends FullNoticeStream
 {
     function getNoticeIds($offset, $limit, $since_id, $max_id)
     {
index 0137814ba4680df10a729208e48c91f0a1df515d..4a16cbd235b789a6465b23ced61ee4feef9b1c1d 100644 (file)
@@ -62,7 +62,7 @@ class PublicNoticeStream extends ScopingNoticeStream
  * @link      http://status.net/
  */
 
-class RawPublicNoticeStream extends NoticeStream
+class RawPublicNoticeStream extends FullNoticeStream
 {
     function getNoticeIds($offset, $limit, $since_id, $max_id)
     {