1
0
Fork 0
forked from mirrors/akkoma

TwitterAPI: Fix some bugz.

This commit is contained in:
lain 2018-02-21 08:16:04 +01:00
parent fd95075e32
commit 391b3e3586

View file

@ -16,7 +16,7 @@ def fetch_friend_statuses(user, opts \\ %{}) do
opts = opts
|> Map.put("blocking_user", user)
|> Map.put("user", user)
|> Map.put("type", ["Create", "Announce", "Follow"])
|> Map.put("type", ["Create", "Announce", "Follow", "Like"])
ActivityPub.fetch_activities([user.ap_id | user.following], opts)
|> activities_to_statuses(%{for: user})
@ -42,8 +42,9 @@ def fetch_public_and_external_statuses(user, opts \\ %{}) do
end
def fetch_user_statuses(user, opts \\ %{}) do
ActivityPub.fetch_activities([], opts)
opts = opts
|> Map.put("type", ["Create", "Announce", "Follow"])
ActivityPub.fetch_activities([], opts)
|> activities_to_statuses(%{for: user})
end