mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
also delay image index page
This commit is contained in:
parent
4c5fcdecb1
commit
a66c1e7e94
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ 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
|
||||||
{images, _tags} = ImageLoader.query(conn, %{match_all: %{}})
|
{:ok, {images, _tags}} = ImageLoader.search_string(conn, "created_at.lte:3 minutes ago")
|
||||||
|
|
||||||
interactions =
|
interactions =
|
||||||
Interactions.user_interactions(images, conn.assigns.current_user)
|
Interactions.user_interactions(images, conn.assigns.current_user)
|
||||||
|
|
Loading…
Reference in a new issue