mirror of
https://github.com/Neetpone/ponepaste.git
synced 2025-03-12 06:30:07 +01:00
Make pastes archive only show public pastes
This commit is contained in:
parent
d5b6066ce3
commit
45f9993776
1 changed files with 2 additions and 1 deletions
|
@ -20,11 +20,12 @@ function transformDataRow($row) {
|
||||||
|
|
||||||
$data = NonRetardedSSP::run(
|
$data = NonRetardedSSP::run(
|
||||||
$conn, $_GET,
|
$conn, $_GET,
|
||||||
'SELECT COUNT(*) FROM pastes',
|
'SELECT COUNT(*) FROM pastes WHERE pastes.visible = \'0\' AND pastes.title != \'\'',
|
||||||
'SELECT pastes.id AS id, title, users.username, GROUP_CONCAT(tags.name SEPARATOR \',\') AS tagsys FROM pastes
|
'SELECT pastes.id AS id, title, users.username, GROUP_CONCAT(tags.name SEPARATOR \',\') AS tagsys FROM pastes
|
||||||
INNER JOIN users ON users.id = pastes.user_id
|
INNER JOIN users ON users.id = pastes.user_id
|
||||||
INNER JOIN paste_taggings on pastes.id = paste_taggings.paste_id
|
INNER JOIN paste_taggings on pastes.id = paste_taggings.paste_id
|
||||||
INNER JOIN tags ON tags.id = paste_taggings.tag_id
|
INNER JOIN tags ON tags.id = paste_taggings.tag_id
|
||||||
|
WHERE pastes.visible = \'0\' AND pastes.title != \'\'
|
||||||
GROUP BY pastes.id'
|
GROUP BY pastes.id'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue