Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
pull/1573/head
Maxence Lange 2023-01-12 12:43:04 -01:00
rodzic e019eb10cc
commit 1e05ef508d
3 zmienionych plików z 4 dodań i 5 usunięć

Wyświetl plik

@ -194,9 +194,8 @@ class CacheActorsRequest extends CacheActorsRequestBuilder {
*/
public function getFromLocalAccount(string $account): Person {
$qb = $this->getCacheActorsSelectSql();
$this->limitToPreferredUsername($qb, $account);
$this->limitToLocal($qb, true);
/** @var SocialQueryBuilder $qb */
$qb->limitToPreferredUsername($account);
$qb->limitToLocal(true);
$qb->leftJoinCacheDocuments('icon_id');
$this->leftJoinDetails($qb);

Wyświetl plik

@ -664,7 +664,7 @@ class Person extends ACore implements IQueryRow, JsonSerializable {
try {
$deletedValue = $this->get('deleted', $data);
if ($deletedValue === '') {
if ($deletedValue === '' || $deletedValue === '0000-00-00 00:00:00') {
return;
}
$dTime = new DateTime();

Wyświetl plik

@ -325,7 +325,7 @@ class AccountService {
/**
* @param Person $actor
*/
public function addLocalActorDetailCount(Person &$actor) {
public function addLocalActorDetailCount(Person $actor) {
$lastPostCreation = '';
try {
$lastPost = $this->streamRequest->lastNoteFromActorId($actor->getId());