ActivityPub: [Users] id instead of short adresses

This commit is contained in:
veselcraft 2022-02-13 00:37:20 +03:00
parent e61fb5d44c
commit 01d7c682fe
No known key found for this signature in database
GPG key ID: AED66BC1AC628A4E

View file

@ -41,7 +41,7 @@ final class UserPresenter extends OpenVKPresenter
"name" => $user->getFullName(), "name" => $user->getFullName(),
"summary" => $user->getDescription(), "summary" => $user->getDescription(),
"url" => $user->getFullURL(), "url" => $user->getFullURL(),
"preferredUsername" => $user->getShortCode(), "preferredUsername" => "id" . $user->getId(), // Костыль, но рабочий
"inbox" => $user->getFullURL() . "/inbox", "inbox" => $user->getFullURL() . "/inbox",
"outbox" => $user->getFullURL() . "/outbox", "outbox" => $user->getFullURL() . "/outbox",
"followers" => ovk_scheme(true) . $_SERVER['SERVER_NAME'] . "/friends" . $user->getId() . '?act=incoming', "followers" => ovk_scheme(true) . $_SERVER['SERVER_NAME'] . "/friends" . $user->getId() . '?act=incoming',