Document and test /api/ap/whoami
This commit is contained in:
parent
472e7b796c
commit
2ad50583f0
2 changed files with 16 additions and 0 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue