Merge branch 'users' into 'develop'

Fix users lookup/return type

See merge request pleroma/pleroma!201
This commit is contained in:
lambda 2018-06-08 11:10:10 +00:00
commit 45a935f0bd
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