Merge pull request #1585 from nextcloud/fix/noid/local-acct

local acct is username
pull/1587/head
Maxence Lange 2023-01-17 15:18:49 -01:00 zatwierdzone przez GitHub
commit f0fb3970d2
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -721,7 +721,7 @@ class Person extends ACore implements IQueryRow, JsonSerializable {
$result =
[
"username" => $this->getPreferredUsername(),
"acct" => $this->getAccount(),
"acct" => $this->isLocal() ? $this->getPreferredUsername() : $this->getAccount(),
"display_name" => $this->getDisplayName(),
"locked" => $this->isLocked(),
"bot" => $this->isBot(),
@ -731,7 +731,6 @@ class Person extends ACore implements IQueryRow, JsonSerializable {
"note" => $this->getDescription(),
"url" => $this->getId(),
"avatar" => $this->getAvatar(),
// "avatar_static" => "https://files.mastodon.social/accounts/avatars/000/126/222/original/50785214e44d10cc.jpeg",
"avatar_static" => $this->getAvatar(),
"header" => $this->getHeader(),
"header_static" => $this->getHeader(),