0
0
Fork 0

Add validation of media attachments, clean up mastodon-own exception classes

This commit is contained in:
Eugen Rochko 2017-02-26 23:23:06 +01:00
parent 063432d7e3
commit 5f511324b6
8 changed files with 22 additions and 22 deletions

View file

@ -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