From 0a8c2d5e30d60e6afe0ae14edf87ddb76e5363f1 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Fri, 4 Oct 2019 19:17:40 -0400 Subject: [PATCH] actually fix it --- lib/philomena_web/controllers/activity_controller.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()