From 5f567104592ba2d72aea4aa64e79752e2c49fd33 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Fri, 4 Oct 2019 19:18:43 -0400 Subject: [PATCH] actually 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 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()