mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-24 04:27:59 +01:00
fix featured image selection
This commit is contained in:
parent
0e86ead40e
commit
2359742d05
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ defmodule PhilomenaWeb.ActivityController do
|
||||||
|
|
||||||
featured_image =
|
featured_image =
|
||||||
Image
|
Image
|
||||||
|> join(:inner, [i], f in Feature, on: [id: f.image_id])
|
|> join(:inner, [i], f in Feature, on: [id: i.image_id])
|
||||||
|> order_by([i, f], desc: f.created_at)
|
|> order_by([i, f], desc: f.created_at)
|
||||||
|> limit(1)
|
|> limit(1)
|
||||||
|> Repo.one()
|
|> Repo.one()
|
||||||
|
|
Loading…
Reference in a new issue