Initial attempt at updating return type

This commit is contained in:
Zachary Dunn 2019-03-18 13:56:59 +00:00
commit a2e03d4f3c
5 changed files with 37 additions and 28 deletions

View file

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