fix: do not show hidden pastes in the non-JS archive

This commit is contained in:
Floorb 2023-05-15 07:29:30 -04:00
parent 490f434f83
commit 3b923609f9

View file

@ -30,6 +30,7 @@ $pastes = Paste::with([
}])
->select('id', 'user_id', 'title', 'created_at')
->where('visible', Paste::VISIBILITY_PUBLIC)
->where('hidden', false)
->whereRaw("((expiry IS NULL) OR ((expiry != 'SELF') AND (expiry > NOW())))");