diff options
author | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2019-09-23 18:54:23 +0200 |
---|---|---|
committer | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2019-09-23 19:47:35 +0200 |
commit | 2ad50583f0cc341413663a595890047823c9abeb (patch) | |
tree | 809f119d7e67b946d29085e59236a38fdd8a7bbf /lib | |
parent | 472e7b796cfeb1445ee1572df414531655b050ce (diff) | |
download | pleroma-2ad50583f0cc341413663a595890047823c9abeb.tar.gz |
Document and test /api/ap/whoami
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/activity_pub/activity_pub_controller.ex | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pleroma/web/activity_pub/activity_pub_controller.ex b/lib/pleroma/web/activity_pub/activity_pub_controller.ex index 01b34fb1d..34bf04a20 100644 --- a/lib/pleroma/web/activity_pub/activity_pub_controller.ex +++ b/lib/pleroma/web/activity_pub/activity_pub_controller.ex @@ -293,6 +293,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubController do |> represent_service_actor(conn) end + @doc "Returns the authenticated user's ActivityPub User object or a 404 Not Found if non-authenticated" def whoami(%{assigns: %{user: %User{} = user}} = conn, _params) do conn |> put_resp_content_type("application/activity+json") |