diff --git a/lib/philomena_web/controllers/activity_controller.ex b/lib/philomena_web/controllers/activity_controller.ex index d2cf1397..aa3ada74 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.image_id]) + |> join(:inner, [i], f in Feature, on: [id: i.id]) |> order_by([i, f], desc: f.created_at) |> limit(1) |> Repo.one()