fix error in Profile.UserLinksController

This commit is contained in:
Luna D 2019-12-19 17:59:16 -05:00
parent 6c137fbad2
commit 3bf4372f0f
No known key found for this signature in database
GPG key ID: D0F46C94720BAA4B

View file

@ -40,7 +40,7 @@ defmodule PhilomenaWeb.Profile.UserLinkController do
{:ok, user_link} -> {:ok, user_link} ->
conn conn
|> put_flash(:info, "Link submitted! Please put '#{user_link.verification_code}' on your linked webpage now.") |> put_flash(:info, "Link submitted! Please put '#{user_link.verification_code}' on your linked webpage now.")
|> redirect(to: Routes.profile_user_link_path(conn, :show, conn.assigns.user_link, user_link)) |> redirect(to: Routes.profile_user_link_path(conn, :show, conn.assigns.user, user_link))
{:error, %Ecto.Changeset{} = changeset} -> {:error, %Ecto.Changeset{} = changeset} ->
render(conn, "new.html", changeset: changeset) render(conn, "new.html", changeset: changeset)