diff options
author | Jonne Haß <me@jhass.eu> | 2020-01-26 22:17:27 +0300 |
---|---|---|
committer | Jonne Haß <me@jhass.eu> | 2020-02-02 20:13:55 +0300 |
commit | fbd0a518291b72e5d7864d8c4c667de5333189ab (patch) | |
tree | 032dbc009d245ba6cf2bdb0538c3f6f2d9b7ae28 /app/controllers | |
parent | 6bbcb7415bff1bb648ae2e826c6918af19d94d9d (diff) |
API: return current users like, reshare and subcription status in post infos
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/api/v1/posts_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api/v1/posts_controller.rb b/app/controllers/api/v1/posts_controller.rb index ae0bd663f..527bc181a 100644 --- a/app/controllers/api/v1/posts_controller.rb +++ b/app/controllers/api/v1/posts_controller.rb @@ -108,7 +108,7 @@ module Api end def post_as_json(post) - PostPresenter.new(post).as_api_response + PostPresenter.new(post, current_user).as_api_response end end end |