summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcin mikołajczak <git@mkljczk.pl>2022-02-01 11:28:08 +0100
committermarcin mikołajczak <git@mkljczk.pl>2022-02-01 12:00:26 +0100
commitf8f2a1775470ac181d3b2417157d18a52433b27b (patch)
tree08d9406371773adeedccf636deaf8dedf0f651a6
parent64944c164f8730c59c3a55e6c2e4b9e444254a9d (diff)
Birthdays: Fix outgoing federation of birth dates
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
-rw-r--r--lib/pleroma/web/activity_pub/views/user_view.ex4
1 files 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
index 5ed08d7f6..d20d4591a 100644
--- 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
%{