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
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue