From 03e3fbcf6b0f225dd16e95b163f9bb884d1c2000 Mon Sep 17 00:00:00 2001 From: itismadness Date: Tue, 9 Sep 2025 21:25:23 +0000 Subject: [PATCH] Improvements to the recent uploaded/snatches boxes --- app/TGroup.php | 1 + templates/user/recent.twig | 15 +++++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/app/TGroup.php b/app/TGroup.php index 370cf27c0..9f8ffca04 100644 --- a/app/TGroup.php +++ b/app/TGroup.php @@ -895,6 +895,7 @@ class TGroup extends BaseAttrObject implements Bookmarked, CategoryHasArtist, Co self::$db->commit(); $this->flush()->refresh(); + $torrent->uploader()->flushRecentUpload(); $torrent->flush(); return $affected; diff --git a/templates/user/recent.twig b/templates/user/recent.twig index a10c560a9..f4d78650a 100644 --- a/templates/user/recent.twig +++ b/templates/user/recent.twig @@ -4,12 +4,15 @@ Recent {{ title }} -{% for r in recent %} - - - {{ r.text }} - +{% for i in 0..4 %} + {% set r = recent[i] %} + + {% if r is not null %} + + {{ r.text }} + + {% endif %} {% endfor %}