summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2019-05-18 00:03:23 -0100
committerMaxence Lange <maxence@artificial-owl.com>2019-05-18 00:03:23 -0100
commita9e46125cca4dd57c43cbeaf0d68493d0f950a8c (patch)
tree8d51668ab79ec9a7c0638fb0c07df8aa47c61e57 /lib
parent0358c15ff41266e8757c688201b3d536dc5641e4 (diff)
limit count to public post
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Db/StreamRequest.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Db/StreamRequest.php b/lib/Db/StreamRequest.php
index 2c39fc12..a995deeb 100644
--- a/lib/Db/StreamRequest.php
+++ b/lib/Db/StreamRequest.php
@@ -216,6 +216,7 @@ class StreamRequest extends StreamRequestBuilder {
$qb = $this->countNotesSelectSql();
$this->limitToAttributedTo($qb, $actorId);
$this->limitToType($qb, Note::TYPE);
+ $this->limitToRecipient($qb, ACore::CONTEXT_PUBLIC);
$cursor = $qb->execute();
$data = $cursor->fetch();