Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into features/remote...
[akkoma] / lib / pleroma / web / pleroma_api / controllers / mascot_controller.ex
index d71d72dd5a1b6da7e3e3248cae09f4ce77924338..8cf552b7e230d77816235588d4ea1d6f35844bd8 100644 (file)
@@ -24,9 +24,7 @@ defmodule Pleroma.Web.PleromaAPI.MascotController do
     with {:ok, object} <- ActivityPub.upload(file, actor: User.ap_id(user)),
          # Reject if not an image
          %{type: "image"} = attachment <- render_attachment(object) do
-      # Sure!
-      # Save to the user's info
-      {:ok, _user} = User.update_info(user, &User.Info.mascot_update(&1, attachment))
+      {:ok, _user} = User.mascot_update(user, attachment)
 
       json(conn, attachment)
     else