Merge branch 'kb_migration' into kb_migration_development

This commit is contained in:
KMY 2023-04-26 11:38:42 +09:00
commit 45f192732f
12 changed files with 169 additions and 35 deletions

View file

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