summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2023-01-17 14:17:54 -0100
committerMaxence Lange <maxence@artificial-owl.com>2023-01-17 14:17:54 -0100
commit6a4550b1f7dc206dc4a11960c4769abb51552b17 (patch)
tree97db910516513ebfe8c5a4ac974fe8d6dbfb8db7 /lib
parenta5bcecb0c7e8d4fb2a9f4bf16973614bff515edd (diff)
local acct is username
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Model/ActivityPub/Actor/Person.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Model/ActivityPub/Actor/Person.php b/lib/Model/ActivityPub/Actor/Person.php
index f2c88641..302301f2 100644
--- a/lib/Model/ActivityPub/Actor/Person.php
+++ b/lib/Model/ActivityPub/Actor/Person.php
@@ -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(),