Skip to content

Commit f663b82

Browse files
committed
don't show viewed item in "more by user" item list
1 parent 67e31b1 commit f663b82

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎controllers/Workshop/WorkshopItemController.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public function itemIndex(
126126
$workshop_items_array = [];
127127
/** @var WorkshopItem $workshop_item2 */
128128
foreach ($workshop_items as $workshop_item2) {
129-
if ($workshop_item2->isLastFileBroken() === false) {
129+
if ($workshop_item2 !== $workshop_item && $workshop_item2->isLastFileBroken() === false) {
130130
$more_items_by_user[] = $workshop_item2;
131131
}
132132
}

0 commit comments

Comments
 (0)