Chats: Add updated_at to Schema and docs.
[akkoma] / lib / pleroma / web / mastodon_api / views / account_view.ex
index 2feda680719aef6e5a6a5b739bf2b124ff07d232..19fbf0902c322a84fa085d516d3f1d412b9907de 100644 (file)
@@ -338,7 +338,11 @@ defmodule Pleroma.Web.MastodonAPI.AccountView do
   defp maybe_put_role(data, _, _), do: data
 
   defp maybe_put_notification_settings(data, %User{id: user_id} = user, %User{id: user_id}) do
-    Kernel.put_in(data, [:pleroma, :notification_settings], user.notification_settings)
+    Kernel.put_in(
+      data,
+      [:pleroma, :notification_settings],
+      Map.from_struct(user.notification_settings)
+    )
   end
 
   defp maybe_put_notification_settings(data, _, _), do: data