diff options
author | Matt Jankowski <mjankowski@thoughtbot.com> | 2017-04-19 09:37:42 -0400 |
---|---|---|
committer | Eugen <eugen@zeonfederated.com> | 2017-04-19 15:37:42 +0200 |
commit | a8e1afc30a1f843943bb29e7385b8611ea3c29f4 (patch) | |
tree | c37ec1d7c086943da8bb126fde19f312d5efcad9 /app/controllers/api/v1/statuses_controller.rb | |
parent | bfbc2ca0d8dcef47f8581585b42f13b6b4c933d9 (diff) |
Simplify render in controllers (#2144)
Diffstat (limited to 'app/controllers/api/v1/statuses_controller.rb')
-rw-r--r-- | app/controllers/api/v1/statuses_controller.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/app/controllers/api/v1/statuses_controller.rb b/app/controllers/api/v1/statuses_controller.rb index e88f9cc41..5a2e18cc0 100644 --- a/app/controllers/api/v1/statuses_controller.rb +++ b/app/controllers/api/v1/statuses_controller.rb @@ -40,7 +40,7 @@ class Api::V1::StatusesController < ApiController set_pagination_headers(next_path, prev_path) - render action: :accounts + render :accounts end def favourited_by @@ -53,7 +53,7 @@ class Api::V1::StatusesController < ApiController set_pagination_headers(next_path, prev_path) - render action: :accounts + render :accounts end def create @@ -62,7 +62,7 @@ class Api::V1::StatusesController < ApiController spoiler_text: status_params[:spoiler_text], visibility: status_params[:visibility], application: doorkeeper_token.application) - render action: :show + render :show end def destroy @@ -73,7 +73,7 @@ class Api::V1::StatusesController < ApiController def reblog @status = ReblogService.new.call(current_user.account, Status.find(params[:id])) - render action: :show + render :show end def unreblog @@ -83,12 +83,12 @@ class Api::V1::StatusesController < ApiController RemovalWorker.perform_async(reblog.id) - render action: :show + render :show end def favourite @status = FavouriteService.new.call(current_user.account, Status.find(params[:id])).status.reload - render action: :show + render :show end def unfavourite @@ -97,7 +97,7 @@ class Api::V1::StatusesController < ApiController UnfavouriteWorker.perform_async(current_user.account_id, @status.id) - render action: :show + render :show end private |