user info: allow formdata for notification settings like every other API

这个提交包含在:
William Pitcock 2019-05-25 05:54:02 +00:00
父节点 59a703fcbe
当前提交 e7e2e7a1a6

查看文件

@ -75,6 +75,11 @@ defmodule Pleroma.User.Info do
end
def update_notification_settings(info, settings) do
settings =
settings
|> Enum.map(fn {k, v} -> {k, v in [true, "true", "True", "1"]} end)
|> Map.new()
notification_settings =
info.notification_settings
|> Map.merge(settings)