Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonne Haß <me@jhass.eu>2020-01-26 22:17:27 +0300
committerJonne Haß <me@jhass.eu>2020-02-02 20:13:55 +0300
commitfbd0a518291b72e5d7864d8c4c667de5333189ab (patch)
tree032dbc009d245ba6cf2bdb0538c3f6f2d9b7ae28 /app/controllers
parent6bbcb7415bff1bb648ae2e826c6918af19d94d9d (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.rb2
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