mirror of
https://github.com/Neetpone/ponepaste.git
synced 2025-03-12 06:30:07 +01:00
fix: do not show hidden pastes in the non-JS archive
This commit is contained in:
parent
490f434f83
commit
3b923609f9
1 changed files with 3 additions and 2 deletions
|
@ -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())))");
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue