Skip to content

Commit

Permalink
Fix user settings migration script failing in some cases (mastodon#24453
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ClearlyClaire authored and skerit committed Jul 7, 2023
1 parent 798c7af commit f582a24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/migrate/20230215074423_move_user_settings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def var
end

def value
YAML.safe_load(self[:value], permitted_classes: [ActiveSupport::HashWithIndifferentAccess]) if self[:value].present?
YAML.safe_load(self[:value], permitted_classes: [ActiveSupport::HashWithIndifferentAccess, Symbol]) if self[:value].present?
end
end

Expand Down

0 comments on commit f582a24

Please # to comment.