diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-02-26 23:23:06 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-02-26 23:23:06 +0100 |
commit | 5f511324b65f94d800dbbd3850214955d7d9eb73 (patch) | |
tree | 5ed179289819d61df1a4c15851389aa7d9b42f19 /app/services/favourite_service.rb | |
parent | 063432d7e352a0dfb7da0e198886b88e3b8a55bb (diff) |
Add validation of media attachments, clean up mastodon-own exception classes
Diffstat (limited to 'app/services/favourite_service.rb')
-rw-r--r-- | app/services/favourite_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/favourite_service.rb b/app/services/favourite_service.rb index 818898302..5cc96403c 100644 --- a/app/services/favourite_service.rb +++ b/app/services/favourite_service.rb @@ -6,7 +6,7 @@ class FavouriteService < BaseService # @param [Status] status # @return [Favourite] def call(account, status) - raise Mastodon::NotPermitted unless status.permitted?(account) + raise Mastodon::NotPermittedError unless status.permitted?(account) favourite = Favourite.create!(account: account, status: status) |