Fix users lookup/return type
* Allow viewing user in frontend by id on pageload
This commit is contained in:
parent
595ca3bb3a
commit
fa0c2727d8
2 changed files with 17 additions and 10 deletions
|
|
@ -15,6 +15,8 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubController do
|
|||
conn
|
||||
|> put_resp_header("content-type", "application/activity+json")
|
||||
|> json(UserView.render("user.json", %{user: user}))
|
||||
else
|
||||
nil -> {:error, :not_found}
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue