ActivityPub: Fix birthday format

This commit is contained in:
veselcraft 2021-12-28 17:56:09 +03:00
parent f862b54f43
commit 6119b92dc2
No known key found for this signature in database
GPG key ID: AED66BC1AC628A4E

View file

@ -53,7 +53,7 @@ final class UserPresenter extends OpenVKPresenter
"firstName" => $user->getFirstName(),
"lastName" => $user->getLastName(),
"middleName" => $user->getPseudo(), // Unlike Smithereen, the Middle name in OpenVK is a Nickname
"vcard:bday" => $user->getBirthday()->format('%d-%m-%Y'),
"vcard:bday" => $user->getBirthday()->format('%Y-%m-%d'),
"gender" => "http://schema.org#" . $user->isFemale() ? "Male" : "Female",
"supportsFriendRequests" => true,
"friends" => ovk_scheme(true) . $_SERVER['SERVER_NAME'] . "/friends" . $user->getId(),