commit: f8f2a1775470ac181d3b2417157d18a52433b27b
parent 64944c164f8730c59c3a55e6c2e4b9e444254a9d
Author: marcin mikołajczak <git@mkljczk.pl>
Date: Tue, 1 Feb 2022 11:28:08 +0100
Birthdays: Fix outgoing federation of birth dates
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/pleroma/web/activity_pub/views/user_view.ex b/lib/pleroma/web/activity_pub/views/user_view.ex
@@ -93,8 +93,8 @@ defmodule Pleroma.Web.ActivityPub.UserView do
end
birthday =
- if user.show_birthday,
- do: user.birthday,
+ if user.show_birthday && user.birthday,
+ do: Date.to_iso8601(user.birthday),
else: nil
%{