mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-15 14:53:17 +00:00
Merge commit from fork
This commit is contained in:
parent
a9f8268a75
commit
e6d2fc869b
15 changed files with 16 additions and 16 deletions
|
|
@ -34,7 +34,7 @@ class MediaController < ApplicationController
|
|||
|
||||
def verify_permitted_status!
|
||||
authorize @media_attachment.status, :show?
|
||||
rescue Mastodon::NotPermittedError
|
||||
rescue ActiveRecord::RecordNotFound, Mastodon::NotPermittedError
|
||||
not_found
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue