]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/publicnoticestream.php
Improved type-hint for following methods:
[quix0rs-gnu-social.git] / lib / publicnoticestream.php
index 51af54f48fda4a869626746e475a609d6ecf2826..34f7b4a1defb69d558bd6949118496cff3aa147f 100644 (file)
@@ -92,6 +92,10 @@ class RawPublicNoticeStream extends NoticeStream
         Notice::addWhereSinceId($notice, $since_id);
         Notice::addWhereMaxId($notice, $max_id);
 
+        if (!empty($this->selectVerbs)) {
+            $notice->whereAddIn('verb', $this->selectVerbs, $notice->columnType('verb'));
+        }
+
         $ids = array();
 
         if ($notice->find()) {
@@ -103,10 +107,6 @@ class RawPublicNoticeStream extends NoticeStream
         $notice->free();
         $notice = NULL;
 
-        if (common_config('debug', 'homevspublic')) {
-            common_debug('Public raw: ' . implode(',', $ids));
-        }
-
-       return $ids;
+        return $ids;
     }
-}
\ No newline at end of file
+}