Don't output notices from deleted users.

This commit is contained in:
Zach Copley 2010-01-06 13:40:28 -08:00
parent 7ed5a38fca
commit 013e6dfdd4
2 changed files with 16 additions and 3 deletions

View File

@ -208,8 +208,15 @@ class TwitapisearchatomAction extends ApiAction
$this->showFeed();
foreach ($notices as $n) {
$profile = $n->getProfile();
// Don't show notices from deleted users
if (!empty($profile)) {
$this->showEntry($n);
}
}
$this->endAtom();
}

View File

@ -105,9 +105,15 @@ class JSONSearchResultsList
break;
}
$profile = $this->notice->getProfile();
// Don't show notices from deleted users
if (!empty($profile)) {
$item = new ResultItem($this->notice);
array_push($this->results, $item);
}
}
$time_end = microtime(true);
$this->completed_in = $time_end - $time_start;