This commit is contained in:
byte[] 2021-12-26 19:16:38 -05:00
parent dadc2f1585
commit c07fbec0e6

View file

@ -36,7 +36,8 @@ defmodule PhilomenaWeb.ImageController do
plug PhilomenaWeb.AdvertPlug when action in [:show] plug PhilomenaWeb.AdvertPlug when action in [:show]
def index(conn, _params) do def index(conn, _params) do
{:ok, {images, _tags}} = ImageLoader.search_string(conn, "created_at.lte:3 minutes ago, thumbnails_generated:true") {:ok, {images, _tags}} =
ImageLoader.search_string(conn, "created_at.lte:3 minutes ago, thumbnails_generated:true")
images = Elasticsearch.search_records(images, preload(Image, tags: :aliases)) images = Elasticsearch.search_records(images, preload(Image, tags: :aliases))