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