mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-30 14:57: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(
|
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
|
||||||
|
|
Loading…
Reference in a new issue