From 3b923609f9ba4bad7158b95066a91c8d131b8d9e Mon Sep 17 00:00:00 2001 From: Floorb <132411956+Neetpone@users.noreply.github.com> Date: Mon, 15 May 2023 07:29:30 -0400 Subject: [PATCH] fix: do not show hidden pastes in the non-JS archive --- public/archive.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/public/archive.php b/public/archive.php index bb0a9c8..4d2b67d 100644 --- a/public/archive.php +++ b/public/archive.php @@ -29,8 +29,9 @@ $pastes = Paste::with([ $q->select('tags.id', 'name', 'slug'); }]) ->select('id', 'user_id', 'title', 'created_at') - ->where('visible', Paste::VISIBILITY_PUBLIC) - ->whereRaw("((expiry IS NULL) OR ((expiry != 'SELF') AND (expiry > NOW())))"); + ->where('visible', Paste::VISIBILITY_PUBLIC) + ->where('hidden', false) + ->whereRaw("((expiry IS NULL) OR ((expiry != 'SELF') AND (expiry > NOW())))"); if (!empty($filter_value)) {