Merge branch 'actor-published' into 'develop'

Include "published" in actor view

See merge request pleroma/pleroma!4312
This commit is contained in:
mkljczk 2025-01-21 13:03:35 +00:00
commit f2c612d4ae
2 changed files with 3 additions and 1 deletions

View file

@ -0,0 +1 @@
Include "published" in actor view

View file

@ -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(