Add validation of media attachments, clean up mastodon-own exception classes
This commit is contained in:
parent
063432d7e3
commit
5f511324b6
8 changed files with 22 additions and 22 deletions
|
@ -25,7 +25,7 @@ class AuthorizeFollowController < ApplicationController
|
|||
else
|
||||
redirect_to web_url("accounts/#{@account.id}")
|
||||
end
|
||||
rescue ActiveRecord::RecordNotFound, Mastodon::NotPermitted
|
||||
rescue ActiveRecord::RecordNotFound, Mastodon::NotPermittedError
|
||||
render :error
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue