]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/inboxnoticestream.php
Merge remote-tracking branch 'upstream/master'
[quix0rs-gnu-social.git] / lib / inboxnoticestream.php
index b5a8877d99d426a9a425c4952ea6ef1d9d3a0c61..496fe0d05d5425f6c784a0cf448b4fe34e4bb52d 100644 (file)
@@ -85,6 +85,7 @@ class RawInboxNoticeStream extends NoticeStream
     function __construct(Profile $target)
     {
         $this->target  = $target;
+        $this->unselectVerbs = array(ActivityVerb::DELETE);
     }
 
     /**
@@ -121,6 +122,9 @@ class RawInboxNoticeStream extends NoticeStream
         if (!empty($this->selectVerbs)) {
             $notice->whereAddIn('verb', $this->selectVerbs, $notice->columnType('verb'));
         }
+        if (!empty($this->unselectVerbs)) {
+            $notice->whereAddIn('!verb', $this->unselectVerbs, $notice->columnType('verb'));
+        }
         $notice->limit($offset, $limit);
         // notice.id will give us even really old posts, which were
         // recently imported. For example if a remote instance had