ActivityPub: Finally, Mastodon, Misskey and Pleroma can see the users

This commit is contained in:
veselcraft 2022-02-11 17:52:31 +03:00
parent 45db4188cc
commit e61fb5d44c
No known key found for this signature in database
GPG key ID: AED66BC1AC628A4E
2 changed files with 1 additions and 3 deletions

View file

@ -62,8 +62,6 @@ class Users
"all" => sizeof(clone $this->users),
"active" => sizeof((clone $this->users)->where("online > 0")),
"online" => sizeof((clone $this->users)->where("online >= ?", time() - 900)),
"posts" => (new Posts)->getCountOfAllPosts(),
"comments" => (new Comments)->getCountOfAllComments()
];
}

View file

@ -41,7 +41,7 @@ final class UserPresenter extends OpenVKPresenter
"name" => $user->getFullName(),
"summary" => $user->getDescription(),
"url" => $user->getFullURL(),
"prefferedUsername" => $user->getShortCode(),
"preferredUsername" => $user->getShortCode(),
"inbox" => $user->getFullURL() . "/inbox",
"outbox" => $user->getFullURL() . "/outbox",
"followers" => ovk_scheme(true) . $_SERVER['SERVER_NAME'] . "/friends" . $user->getId() . '?act=incoming',