diff options
author | Jonne Haß <me@jhass.eu> | 2020-02-08 01:40:00 +0300 |
---|---|---|
committer | Jonne Haß <me@jhass.eu> | 2020-02-09 13:04:59 +0300 |
commit | 6dbef95951424ed8d093739b35b2d887d33fa2b4 (patch) | |
tree | c6ab8b2ff8f616af7ea1fe2cc49825a2fa295390 /app/controllers | |
parent | 8068d8747b795d384f27e81a8f606af11a49f9c5 (diff) |
API: return whether post or item was already reported or not
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/api/v1/comments_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api/v1/comments_controller.rb b/app/controllers/api/v1/comments_controller.rb index 52ddf88f5..1e1811536 100644 --- a/app/controllers/api/v1/comments_controller.rb +++ b/app/controllers/api/v1/comments_controller.rb @@ -104,7 +104,7 @@ module Api end def comment_as_json(comment) - CommentPresenter.new(comment).as_api_response + CommentPresenter.new(comment, current_user).as_api_response end def find_post |