about summary refs log tree commit diff
path: root/app/controllers/api/v1/statuses/reblogged_by_accounts_controller.rb
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2020-02-27 12:37:15 +0100
committerThibaut Girka <thib@sitedethib.com>2020-02-27 12:37:15 +0100
commit51d326f852baaa1b1c3790549e0d5941a4c13778 (patch)
tree1381461584bc328a90a2f881345e64ba990120d8 /app/controllers/api/v1/statuses/reblogged_by_accounts_controller.rb
parent9ee8e1add9f937a75c2514ca88958ff02cf5573c (diff)
parentaa8568b7f2f9043056fa7a2bb9b59ef31d63554c (diff)
Merge branch 'master' into glitch-soc/merge-upstream
Diffstat (limited to 'app/controllers/api/v1/statuses/reblogged_by_accounts_controller.rb')
-rw-r--r--app/controllers/api/v1/statuses/reblogged_by_accounts_controller.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/api/v1/statuses/reblogged_by_accounts_controller.rb b/app/controllers/api/v1/statuses/reblogged_by_accounts_controller.rb
index cc285ad23..fa60e7d84 100644
--- a/app/controllers/api/v1/statuses/reblogged_by_accounts_controller.rb
+++ b/app/controllers/api/v1/statuses/reblogged_by_accounts_controller.rb
@@ -66,8 +66,7 @@ class Api::V1::Statuses::RebloggedByAccountsController < Api::BaseController
     @status = Status.find(params[:status_id])
     authorize @status, :show?
   rescue Mastodon::NotPermittedError
-    # Reraise in order to get a 404 instead of a 403 error code
-    raise ActiveRecord::RecordNotFound
+    not_found
   end
 
   def pagination_params(core_params)