TwitterAPI: Fix some bugz.
This commit is contained in:
parent
fd95075e32
commit
391b3e3586
|
@ -16,7 +16,7 @@ def fetch_friend_statuses(user, opts \\ %{}) do
|
||||||
opts = opts
|
opts = opts
|
||||||
|> Map.put("blocking_user", user)
|
|> Map.put("blocking_user", user)
|
||||||
|> Map.put("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)
|
ActivityPub.fetch_activities([user.ap_id | user.following], opts)
|
||||||
|> activities_to_statuses(%{for: user})
|
|> activities_to_statuses(%{for: user})
|
||||||
|
@ -42,8 +42,9 @@ def fetch_public_and_external_statuses(user, opts \\ %{}) do
|
||||||
end
|
end
|
||||||
|
|
||||||
def fetch_user_statuses(user, opts \\ %{}) do
|
def fetch_user_statuses(user, opts \\ %{}) do
|
||||||
ActivityPub.fetch_activities([], opts)
|
opts = opts
|
||||||
|> Map.put("type", ["Create", "Announce", "Follow"])
|
|> Map.put("type", ["Create", "Announce", "Follow"])
|
||||||
|
ActivityPub.fetch_activities([], opts)
|
||||||
|> activities_to_statuses(%{for: user})
|
|> activities_to_statuses(%{for: user})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue