projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3a81fe
)
Unify user fetching.
author
lain
<lain@soykaf.club>
Sat, 24 Mar 2018 14:02:43 +0000
(15:02 +0100)
committer
lain
<lain@soykaf.club>
Sat, 24 Mar 2018 14:02:43 +0000
(15:02 +0100)
lib/pleroma/web/twitter_api/twitter_api.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/twitter_api/twitter_api.ex
b/lib/pleroma/web/twitter_api/twitter_api.ex
index 987a960bb6b572369e8a879162a7dd17838281a9..61b11681a08589744c4d278d9e49bf82e13b55e5 100644
(file)
--- a/
lib/pleroma/web/twitter_api/twitter_api.ex
+++ b/
lib/pleroma/web/twitter_api/twitter_api.ex
@@
-328,7
+328,8
@@
defmodule Pleroma.Web.TwitterAPI.TwitterAPI do
end
def get_external_profile(for_user, uri) do
- with {:ok, %User{} = user} <- OStatus.find_or_make_user(uri) do
+ IO.inspect(uri)
+ with %User{} = user <- User.get_or_fetch_by_nickname(uri) do
spawn(fn ->
with url <- user.info["topic"],
{:ok, %{body: body}} <- @httpoison.get(url, [], follow_redirect: true, timeout: 10000, recv_timeout: 20000) do