Birthdays: Fix outgoing federation of birth dates
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
64944c164f
commit
f8f2a17754
|
@ -93,8 +93,8 @@ def render("user.json", %{user: user}) do
|
||||||
end
|
end
|
||||||
|
|
||||||
birthday =
|
birthday =
|
||||||
if user.show_birthday,
|
if user.show_birthday && user.birthday,
|
||||||
do: user.birthday,
|
do: Date.to_iso8601(user.birthday),
|
||||||
else: nil
|
else: nil
|
||||||
|
|
||||||
%{
|
%{
|
||||||
|
|
Loading…
Reference in New Issue