mirror of
https://github.com/mastodon/mastodon.git
synced 2026-04-25 07:56:08 -05:00
Use JSON.parse in user settings (#38237)
This commit is contained in:
parent
4328807f28
commit
0e14224eaf
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user