limit count to public post

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
pull/529/head
Maxence Lange 2019-05-18 00:03:23 -01:00
rodzic 0358c15ff4
commit a9e46125cc
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -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();