mirror of
https://github.com/glitch-soc/mastodon.git
synced 2026-03-29 03:00:33 +02:00
Use JSON.parse in user settings (#38237)
This commit is contained in:
@@ -6,7 +6,7 @@ class UserSettingsSerializer
|
||||
if value.blank?
|
||||
{}
|
||||
else
|
||||
Oj.load(value, symbol_keys: true)
|
||||
JSON.parse(value, symbolize_names: true)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -14,6 +14,6 @@ class UserSettingsSerializer
|
||||
end
|
||||
|
||||
def self.dump(value)
|
||||
Oj.dump(value.as_json)
|
||||
JSON.generate(value.as_json)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user