$search_engine->limit(($this->page - 1) * $this->rpp, $this->rpp + 1);
if ($search_engine->query($this->query)) {
$cnt = $notice->find();
- $this->notices = $notice->fetchAll();
+ foreach ($notice->fetchAll() as $testNotice) {
+ // Must be true
+ assert($testNotice instanceof Notice);
+
+ // Check scope of notice to current profile (including guests)
+ if ($testNotice->isCurrentProfileInScope()) {
+ // In scope
+ $this->notices[] = $testNotice;
+ }
+ } // END - if
}
$this->showJsonTimeline($this->notices);