diff --git a/lib/philomena/users/user.ex b/lib/philomena/users/user.ex index 383d1934..279f6057 100644 --- a/lib/philomena/users/user.ex +++ b/lib/philomena/users/user.ex @@ -15,9 +15,9 @@ defmodule Philomena.Users.User do @derive {Phoenix.Param, key: :slug} schema "users" do - has_many :links, Philomena.Users.Link - has_many :verified_links, Philomena.Users.Link, where: [aasm_state: "verified"] - has_many :public_links, Philomena.Users.Link, where: [public: true, aasm_state: "verified"] + has_many :links, Philomena.UserLinks.UserLink + has_many :verified_links, Philomena.UserLinks.UserLink, where: [aasm_state: "verified"] + has_many :public_links, Philomena.UserLinks.UserLink, where: [public: true, aasm_state: "verified"] has_many :galleries, Philomena.Galleries.Gallery, foreign_key: :creator_id has_many :awards, Philomena.Badges.Award diff --git a/lib/philomena_web/controllers/filter/current_controller.ex b/lib/philomena_web/controllers/filter/current_controller.ex index c71f0390..45acee2e 100644 --- a/lib/philomena_web/controllers/filter/current_controller.ex +++ b/lib/philomena_web/controllers/filter/current_controller.ex @@ -29,7 +29,7 @@ defmodule PhilomenaWeb.Filter.CurrentController do end defp update_filter(conn, user, filter) do - {:ok, user} = + {:ok, _user} = user |> User.filter_changeset(filter) |> Repo.update()