diff --git a/lib/philomena_web/controllers/admin/user_controller.ex b/lib/philomena_web/controllers/admin/user_controller.ex index 19b1616d..9952094a 100644 --- a/lib/philomena_web/controllers/admin/user_controller.ex +++ b/lib/philomena_web/controllers/admin/user_controller.ex @@ -62,7 +62,7 @@ defmodule PhilomenaWeb.Admin.UserController do {:ok, user} -> conn |> put_flash(:info, "User successfully updated.") - |> moderation_log(details: &log_details/3, data: user) + |> moderation_log(details: &log_details/3, data: user.user) |> redirect(to: Routes.profile_path(conn, :show, conn.assigns.user)) {:error, %{user: changeset}} ->