Initial attempt at updating return type
This commit is contained in:
parent
34fc0dca2e
commit
a2e03d4f3c
5 changed files with 37 additions and 28 deletions
|
|
@ -312,7 +312,7 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPI do
|
|||
end
|
||||
|
||||
def get_external_profile(for_user, uri) do
|
||||
with %User{} = user <- User.get_or_fetch(uri) do
|
||||
with {:ok, %User{} = user} <- User.get_or_fetch(uri) do
|
||||
{:ok, UserView.render("show.json", %{user: user, for: for_user})}
|
||||
else
|
||||
_e ->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue