MastoAPI user timelines: render statuses for the logged in user.

This commit is contained in:
eal 2018-06-01 12:16:42 +03:00
parent 196d36a7d5
commit 8c609ee3f9

View file

@ -236,7 +236,11 @@ def user_statuses(%{assigns: %{user: reading_user}} = conn, params) do
conn
|> add_link_headers(:user_statuses, activities, params["id"])
|> render(StatusView, "index.json", %{activities: activities, for: user, as: :activity})
|> render(StatusView, "index.json", %{
activities: activities,
for: reading_user,
as: :activity
})
end
end