diff --git a/lib/philomena_web/controllers/activity_controller.ex b/lib/philomena_web/controllers/activity_controller.ex index aa3ada74..93e9f7ad 100644 --- a/lib/philomena_web/controllers/activity_controller.ex +++ b/lib/philomena_web/controllers/activity_controller.ex @@ -63,7 +63,7 @@ defmodule PhilomenaWeb.ActivityController do featured_image = Image - |> join(:inner, [i], f in Feature, on: [id: i.id]) + |> join(:inner, [i], f in Feature, on: [image_id: i.id]) |> order_by([i, f], desc: f.created_at) |> limit(1) |> Repo.one()