]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/conversationnoticestream.php
Only get POST verbs for noticestreams for now
[quix0rs-gnu-social.git] / lib / conversationnoticestream.php
index b9b03c45c5b6354b262a8a6ba02967c95dcea7a8..21b942c018fc3ab74d7a2a61f93a9ac885459f8c 100644 (file)
@@ -95,6 +95,12 @@ class RawConversationNoticeStream extends NoticeStream
             $notice->limit($offset, $limit);
         }
 
+        if (!$this->allVerbs) {
+            $notice->whereAdd(sprintf('verb="%s" OR verb="%s"',
+                                      ActivityVerb::POST,
+                                      ActivityUtils::resolveUri(ActivityVerb::POST, true)));
+        }
+
         // ORDER BY
         // currently imitates the previously used "_reverseChron" sorting
         $notice->orderBy('notice.created DESC');