Don't output notices from deleted users.
This commit is contained in:
parent
7ed5a38fca
commit
013e6dfdd4
@ -208,7 +208,14 @@ class TwitapisearchatomAction extends ApiAction
|
|||||||
$this->showFeed();
|
$this->showFeed();
|
||||||
|
|
||||||
foreach ($notices as $n) {
|
foreach ($notices as $n) {
|
||||||
$this->showEntry($n);
|
|
||||||
|
$profile = $n->getProfile();
|
||||||
|
|
||||||
|
// Don't show notices from deleted users
|
||||||
|
|
||||||
|
if (!empty($profile)) {
|
||||||
|
$this->showEntry($n);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->endAtom();
|
$this->endAtom();
|
||||||
|
@ -105,8 +105,14 @@ class JSONSearchResultsList
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
$item = new ResultItem($this->notice);
|
$profile = $this->notice->getProfile();
|
||||||
array_push($this->results, $item);
|
|
||||||
|
// Don't show notices from deleted users
|
||||||
|
|
||||||
|
if (!empty($profile)) {
|
||||||
|
$item = new ResultItem($this->notice);
|
||||||
|
array_push($this->results, $item);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$time_end = microtime(true);
|
$time_end = microtime(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user