Merge pull request #1573 from nextcloud/fix/noid/fix-0112

small fixes
pull/1575/head
Maxence Lange 2023-01-12 14:53:11 -01:00 zatwierdzone przez GitHub
commit a9e5d7f871
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
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());