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/media_controller.rb | |
parent | a1062df1e1bc15d32a3afe3054d1e0063a4beb93 (diff) |
Add more tests for ActivityPub controllers (#13585)
Diffstat (limited to 'app/controllers/media_controller.rb')
-rw-r--r-- | app/controllers/media_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/media_controller.rb b/app/controllers/media_controller.rb index 05cf09c28..1d166d6e7 100644 --- a/app/controllers/media_controller.rb +++ b/app/controllers/media_controller.rb @@ -33,7 +33,7 @@ class MediaController < ApplicationController def verify_permitted_status! authorize @media_attachment.status, :show? rescue Mastodon::NotPermittedError - raise ActiveRecord::RecordNotFound + not_found end def check_playable |