logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://anongit.hacktivis.me/git/pleroma.git/
commit: 38b17933e160beb5923283786ca829af1d6b4036
parent 1bebc900ed836fcdb3d651a8d09476ac0f9e349e
Author: mkljczk <git@mkljczk.pl>
Date:   Sun, 19 Jan 2025 16:26:46 +0100

Include "published" in actor view

Signed-off-by: mkljczk <git@mkljczk.pl>

Diffstat:

Achangelog.d/actor-published-date.add1+
Mlib/pleroma/web/activity_pub/views/user_view.ex3++-
2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/changelog.d/actor-published-date.add b/changelog.d/actor-published-date.add @@ -0,0 +1 @@ +Include "published" in actor view diff --git a/lib/pleroma/web/activity_pub/views/user_view.ex b/lib/pleroma/web/activity_pub/views/user_view.ex @@ -127,7 +127,8 @@ defmodule Pleroma.Web.ActivityPub.UserView do "capabilities" => capabilities, "alsoKnownAs" => user.also_known_as, "vcard:bday" => birthday, - "webfinger" => "acct:#{User.full_nickname(user)}" + "webfinger" => "acct:#{User.full_nickname(user)}", + "published" => Pleroma.Web.CommonAPI.Utils.to_masto_date(user.inserted_at) } |> Map.merge( maybe_make_image(