mirror of
https://github.com/funamitech/mastodon
synced 2024-11-24 15:16:33 +09:00
Fix some settings not being properly migrated when set to false
This commit is contained in:
parent
6760e67c64
commit
b57ec6ad6b
@ -42,7 +42,7 @@ class MoveGlitchUserSettings < ActiveRecord::Migration[6.1]
|
||||
MAPPING.each do |legacy_key, new_key|
|
||||
value = previous_settings[legacy_key]&.value
|
||||
|
||||
next if value.blank?
|
||||
next if value.nil?
|
||||
|
||||
if value.is_a?(Hash)
|
||||
value.each do |nested_key, nested_value|
|
||||
|
Loading…
Reference in New Issue
Block a user