four large thumbs

This commit is contained in:
byte[] 2019-12-19 20:23:37 -05:00
parent ad849e8bb8
commit 632ec78f0b

View file

@ -33,14 +33,14 @@ defmodule PhilomenaWeb.ProfileController do
ImageLoader.search_string( ImageLoader.search_string(
conn, conn,
"uploader_id:#{user.id}", "uploader_id:#{user.id}",
pagination: %{page_number: 1, page_size: 8} pagination: %{page_number: 1, page_size: 4}
) )
{:ok, {recent_faves, _tags}} = {:ok, {recent_faves, _tags}} =
ImageLoader.search_string( ImageLoader.search_string(
conn, conn,
"faved_by_id:#{user.id}", "faved_by_id:#{user.id}",
pagination: %{page_number: 1, page_size: 8} pagination: %{page_number: 1, page_size: 4}
) )
tags = tags(conn.assigns.user.public_links) tags = tags(conn.assigns.user.public_links)
@ -117,7 +117,7 @@ defmodule PhilomenaWeb.ProfileController do
Gallery Gallery
|> where(creator_id: ^user.id) |> where(creator_id: ^user.id)
|> preload([:creator, thumbnail: :tags]) |> preload([:creator, thumbnail: :tags])
|> limit(5) |> limit(4)
|> Repo.all() |> Repo.all()
statistics = calculate_statistics(user) statistics = calculate_statistics(user)
@ -195,7 +195,7 @@ defmodule PhilomenaWeb.ProfileController do
ImageLoader.query( ImageLoader.query(
conn, conn,
%{terms: %{tag_ids: Enum.map(tags, & &1.id)}}, %{terms: %{tag_ids: Enum.map(tags, & &1.id)}},
pagination: %{page_number: 1, page_size: 8} pagination: %{page_number: 1, page_size: 4}
) )
images images