mirror of
https://github.com/openvk/openvk
synced 2024-11-15 03:31:18 +03:00
ActivityPub: Finally, Mastodon, Misskey and Pleroma can see the users
This commit is contained in:
parent
45db4188cc
commit
e61fb5d44c
2 changed files with 1 additions and 3 deletions
|
@ -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()
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue