Commit a17ba0ee authored by lain's avatar lain

Only return posts in TwAPI user view.

parent 82df16f7
...@@ -43,7 +43,7 @@ def fetch_public_and_external_statuses(user, opts \\ %{}) do ...@@ -43,7 +43,7 @@ def fetch_public_and_external_statuses(user, opts \\ %{}) do
def fetch_user_statuses(user, opts \\ %{}) do def fetch_user_statuses(user, opts \\ %{}) do
opts = opts opts = opts
|> Map.put("type", ["Create", "Announce", "Follow"]) |> Map.put("type", ["Create"])
ActivityPub.fetch_public_activities(opts) ActivityPub.fetch_public_activities(opts)
|> activities_to_statuses(%{for: user}) |> activities_to_statuses(%{for: user})
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment