]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/profilenoticestream.php
NoticeStream fixes regarding non-post verbs
[quix0rs-gnu-social.git] / lib / profilenoticestream.php
index a59a5d848b8ce06429e2a173e1b48a66260ea919..1fa795d32090a55866c49f9221757ab7c089fdcb 100644 (file)
@@ -121,6 +121,7 @@ class RawProfileNoticeStream extends NoticeStream
 
     function __construct($profile)
     {
+        parent::__construct();
         $this->profile = $profile;
     }
 
@@ -136,12 +137,6 @@ class RawProfileNoticeStream extends NoticeStream
         Notice::addWhereSinceId($notice, $since_id);
         Notice::addWhereMaxId($notice, $max_id);
 
-        if (!$this->allVerbs) {
-            $notice->whereAdd(sprintf('verb="%s" OR verb="%s"',
-                                      ActivityVerb::POST,
-                                      ActivityUtils::resolveUri(ActivityVerb::POST, true)));
-        }
-
         $notice->orderBy('created DESC, id DESC');
 
         if (!is_null($offset)) {