parent
ae38b72e24
commit
d009a79df5
2 changed files with 9 additions and 7 deletions
|
|
@ -211,6 +211,11 @@ defmodule Pleroma.Web.TwitterAPI.Controller do
|
|||
response <- Poison.encode!(user_map) do
|
||||
conn
|
||||
|> json_reply(200, response)
|
||||
else
|
||||
_e ->
|
||||
conn
|
||||
|> put_status(404)
|
||||
|> json(%{error: "Can't find user"})
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue