diff options
author | eal <eal@waifu.club> | 2018-06-01 09:35:29 +0000 |
---|---|---|
committer | eal <eal@waifu.club> | 2018-06-01 09:35:29 +0000 |
commit | dca1d6d16278599485df3a175fb356bdc995441c (patch) | |
tree | 82ccc8ee824b64851867af89227d8421a1da1dd4 /lib | |
parent | 98b8f087832a793fa1b56d26acfec46360e73d00 (diff) | |
parent | 8c609ee3f98851e512801d64870934a774ca0c11 (diff) | |
download | pleroma-dca1d6d16278599485df3a175fb356bdc995441c.tar.gz |
Merge branch 'fix/user-timeline-reading-user' into 'develop'
MastoAPI user timelines: render statuses for the logged in user.
See merge request pleroma/pleroma!187
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 |