diff options
author | eal <eal@waifu.club> | 2018-06-01 12:16:42 +0300 |
---|---|---|
committer | eal <eal@waifu.club> | 2018-06-01 12:30:11 +0300 |
commit | 8c609ee3f98851e512801d64870934a774ca0c11 (patch) | |
tree | 0db02ed4e29b0c521938f5b0bf03317a294f6a8e /lib | |
parent | 196d36a7d5e94ea2b494c5910a263da20c985e66 (diff) | |
download | pleroma-8c609ee3f98851e512801d64870934a774ca0c11.tar.gz |
MastoAPI user timelines: render statuses for the logged in user.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/mastodon_api/mastodon_api_controller.ex | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex index 64a8a66f7..5fb51e8fa 100644 --- a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex +++ b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex @@ -236,7 +236,11 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController 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 |