Fix users lookup/return type

* Allow viewing user in frontend by id on pageload
This commit is contained in:
Rachel H 2018-06-07 21:23:30 -07:00
commit fa0c2727d8
2 changed files with 17 additions and 10 deletions

View file

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