Merge commit from fork
This commit is contained in:
parent
a9f8268a75
commit
e6d2fc869b
15 changed files with 16 additions and 16 deletions
|
|
@ -21,7 +21,7 @@ class AuthorizeInteractionsController < ApplicationController
|
|||
def set_resource
|
||||
@resource = located_resource
|
||||
authorize(@resource, :show?) if @resource.is_a?(Status)
|
||||
rescue Mastodon::NotPermittedError
|
||||
rescue ActiveRecord::RecordNotFound, Mastodon::NotPermittedError
|
||||
not_found
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue