mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 21:47:59 +01:00
four large thumbs
This commit is contained in:
parent
ad849e8bb8
commit
632ec78f0b
1 changed files with 4 additions and 4 deletions
|
@ -33,14 +33,14 @@ defmodule PhilomenaWeb.ProfileController do
|
|||
ImageLoader.search_string(
|
||||
conn,
|
||||
"uploader_id:#{user.id}",
|
||||
pagination: %{page_number: 1, page_size: 8}
|
||||
pagination: %{page_number: 1, page_size: 4}
|
||||
)
|
||||
|
||||
{:ok, {recent_faves, _tags}} =
|
||||
ImageLoader.search_string(
|
||||
conn,
|
||||
"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)
|
||||
|
@ -117,7 +117,7 @@ defmodule PhilomenaWeb.ProfileController do
|
|||
Gallery
|
||||
|> where(creator_id: ^user.id)
|
||||
|> preload([:creator, thumbnail: :tags])
|
||||
|> limit(5)
|
||||
|> limit(4)
|
||||
|> Repo.all()
|
||||
|
||||
statistics = calculate_statistics(user)
|
||||
|
@ -195,7 +195,7 @@ defmodule PhilomenaWeb.ProfileController do
|
|||
ImageLoader.query(
|
||||
conn,
|
||||
%{terms: %{tag_ids: Enum.map(tags, & &1.id)}},
|
||||
pagination: %{page_number: 1, page_size: 8}
|
||||
pagination: %{page_number: 1, page_size: 4}
|
||||
)
|
||||
|
||||
images
|
||||
|
|
Loading…
Reference in a new issue