Fetch the same data from json webfinger as from xml webfinger.
[akkoma] / lib / pleroma / web / twitter_api / twitter_api.ex
index ccd79625cdb4dc9d96d6ef48a7ee8a1a4c59340a..987a960bb6b572369e8a879162a7dd17838281a9 100644 (file)
@@ -43,8 +43,8 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPI do
 
   def fetch_user_statuses(user, opts \\ %{}) do
     opts = opts
-    |> Map.put("type", ["Create", "Announce", "Follow"])
-    ActivityPub.fetch_activities([], opts)
+    |> Map.put("type", ["Create"])
+    ActivityPub.fetch_public_activities(opts)
     |> activities_to_statuses(%{for: user})
   end