mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-05 22:45:37 +00: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 a new issue