Merge branch 'kb_migration' into kb_migration_development
This commit is contained in:
commit
45f192732f
12 changed files with 169 additions and 35 deletions
|
@ -31,6 +31,7 @@ class Api::V1::ListsController < Api::BaseController
|
|||
end
|
||||
|
||||
def destroy
|
||||
raise Mastodon::ValidationError, I18n.t('antennas.errors.remove_list_with_antenna') if Antenna.where(list_id: @list.id).any?
|
||||
@list.destroy!
|
||||
render_empty
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue