Merge branch 'kb_development' into kb_migration

This commit is contained in:
KMY 2023-04-26 11:38:30 +09:00
commit ce5a9f2500
9 changed files with 50 additions and 27 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