mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
Check for absence of thumbnails_generated instead of presence
This commit is contained in:
parent
c38b50aafa
commit
ffe07cce3d
2 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@ defmodule PhilomenaWeb.ActivityController do
|
||||||
{:ok, {images, _tags}} =
|
{:ok, {images, _tags}} =
|
||||||
ImageLoader.search_string(
|
ImageLoader.search_string(
|
||||||
conn,
|
conn,
|
||||||
"created_at.lte:3 minutes ago, thumbnails_generated:true",
|
"created_at.lte:3 minutes ago, -thumbnails_generated:false",
|
||||||
pagination: %{conn.assigns.image_pagination | page_number: 1}
|
pagination: %{conn.assigns.image_pagination | page_number: 1}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@ defmodule PhilomenaWeb.ImageController do
|
||||||
|
|
||||||
def index(conn, _params) do
|
def index(conn, _params) do
|
||||||
{:ok, {images, _tags}} =
|
{:ok, {images, _tags}} =
|
||||||
ImageLoader.search_string(conn, "created_at.lte:3 minutes ago, thumbnails_generated:true")
|
ImageLoader.search_string(conn, "created_at.lte:3 minutes ago, -thumbnails_generated:false")
|
||||||
|
|
||||||
images = Elasticsearch.search_records(images, preload(Image, tags: :aliases))
|
images = Elasticsearch.search_records(images, preload(Image, tags: :aliases))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue