diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2020-05-03 16:30:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-03 16:30:36 +0200 |
commit | 988b0493fea7a850130b83d0e81675bda8dd9d8e (patch) | |
tree | 0d9cdb503c8f0fe131e01cfdbf61ab85dcd1f296 /app/controllers/api/v1/polls_controller.rb | |
parent | a1062df1e1bc15d32a3afe3054d1e0063a4beb93 (diff) |
Add more tests for ActivityPub controllers (#13585)
Diffstat (limited to 'app/controllers/api/v1/polls_controller.rb')
-rw-r--r-- | app/controllers/api/v1/polls_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api/v1/polls_controller.rb b/app/controllers/api/v1/polls_controller.rb index 744baf7bb..6435e9f0d 100644 --- a/app/controllers/api/v1/polls_controller.rb +++ b/app/controllers/api/v1/polls_controller.rb @@ -17,7 +17,7 @@ class Api::V1::PollsController < Api::BaseController @poll = Poll.attached.find(params[:id]) authorize @poll.status, :show? rescue Mastodon::NotPermittedError - raise ActiveRecord::RecordNotFound + not_found end def refresh_poll |