include recent artwork in interactions

This commit is contained in:
byte[] 2019-12-20 11:55:16 -05:00
parent 8d5aad56f6
commit 08e95e0a01
2 changed files with 1 additions and 2 deletions

View file

@ -27,7 +27,6 @@ defmodule PhilomenaWeb.CommentLoader do
|> where(image_id: ^image.id)
|> filter_direction(comment.created_at, user)
|> Repo.aggregate(:count, :id)
|> IO.inspect()
page_size = conn.assigns.comment_scrivener[:page_size]

View file

@ -123,7 +123,7 @@ defmodule PhilomenaWeb.ProfileController do
statistics = calculate_statistics(user)
interactions =
Interactions.user_interactions([recent_uploads, recent_faves], current_user)
Interactions.user_interactions([recent_uploads, recent_faves, recent_artwork], current_user)
bans =
Bans.User