mirror of
https://github.com/openvk/openvk
synced 2024-11-15 11:39:13 +03:00
ActivityPub: Fix birthday format
This commit is contained in:
parent
f862b54f43
commit
6119b92dc2
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ final class UserPresenter extends OpenVKPresenter
|
||||||
"firstName" => $user->getFirstName(),
|
"firstName" => $user->getFirstName(),
|
||||||
"lastName" => $user->getLastName(),
|
"lastName" => $user->getLastName(),
|
||||||
"middleName" => $user->getPseudo(), // Unlike Smithereen, the Middle name in OpenVK is a Nickname
|
"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",
|
"gender" => "http://schema.org#" . $user->isFemale() ? "Male" : "Female",
|
||||||
"supportsFriendRequests" => true,
|
"supportsFriendRequests" => true,
|
||||||
"friends" => ovk_scheme(true) . $_SERVER['SERVER_NAME'] . "/friends" . $user->getId(),
|
"friends" => ovk_scheme(true) . $_SERVER['SERVER_NAME'] . "/friends" . $user->getId(),
|
||||||
|
|
Loading…
Reference in a new issue