Merge branch 'feature/allow-user-query-via-id' into 'develop'
Admin API: Allow querying user by ID See merge request pleroma/pleroma!1380
This commit is contained in:
commit
670a77ecbc
3 changed files with 5 additions and 4 deletions
|
|
@ -74,7 +74,7 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIController do
|
|||
end
|
||||
|
||||
def user_show(conn, %{"nickname" => nickname}) do
|
||||
with %User{} = user <- User.get_cached_by_nickname(nickname) do
|
||||
with %User{} = user <- User.get_cached_by_nickname_or_id(nickname) do
|
||||
conn
|
||||
|> json(AccountView.render("show.json", %{user: user}))
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue