Use User.get_or_fetch/1 instead of OStatus.find_or_make_user/1
authorkPherox <admin@mail.kr-kp.com>
Tue, 23 Jul 2019 09:45:04 +0000 (18:45 +0900)
committerkPherox <admin@mail.kr-kp.com>
Tue, 23 Jul 2019 10:47:27 +0000 (19:47 +0900)
lib/pleroma/web/twitter_api/controllers/util_controller.ex

index 9e4da7dca43d587e36a80c6846e8b298d5990809..39bc6147cebfa896a55c1dfa2b662c7960cdf062 100644 (file)
@@ -17,7 +17,6 @@ defmodule Pleroma.Web.TwitterAPI.UtilController do
   alias Pleroma.Web
   alias Pleroma.Web.ActivityPub.ActivityPub
   alias Pleroma.Web.CommonAPI
-  alias Pleroma.Web.OStatus
   alias Pleroma.Web.WebFinger
 
   def help_test(conn, _params) do
@@ -60,7 +59,7 @@ defmodule Pleroma.Web.TwitterAPI.UtilController do
       %Activity{id: activity_id} = Activity.get_create_by_object_ap_id(object.data["id"])
       redirect(conn, to: "/notice/#{activity_id}")
     else
-      {err, followee} = OStatus.find_or_make_user(acct)
+      {err, followee} = User.get_or_fetch(acct)
       avatar = User.avatar_url(followee)
       name = followee.nickname
       id = followee.id