fixed bug that hid edited posts
parent
ed023c514f
commit
8fc8a5778a
|
@ -225,7 +225,7 @@ function print_overboard($db, $css, $settings, $page)
|
|||
sub, text, timestamp, name,
|
||||
tripcode
|
||||
FROM threads
|
||||
WHERE post_id = org_id
|
||||
WHERE org_id = original
|
||||
AND shadow = 'no'
|
||||
AND sub NOT IN ($out)
|
||||
ORDER BY ROWID DESC");
|
||||
|
@ -236,7 +236,7 @@ function print_overboard($db, $css, $settings, $page)
|
|||
sub, text, timestamp, name,
|
||||
tripcode
|
||||
FROM threads
|
||||
WHERE post_id = org_id
|
||||
WHERE org_id = original
|
||||
AND shadow = 'no'
|
||||
AND sub NOT IN ($out)
|
||||
ORDER BY ROWID DESC
|
||||
|
@ -246,7 +246,7 @@ function print_overboard($db, $css, $settings, $page)
|
|||
sub, text, timestamp, name,
|
||||
tripcode
|
||||
FROM threads
|
||||
WHERE post_id = org_id
|
||||
WHERE org_id = original
|
||||
AND shadow = 'no'
|
||||
AND sub NOT IN ($out)
|
||||
ORDER BY ROWID DESC
|
||||
|
@ -328,7 +328,7 @@ function print_individual_feed($db, $css, $settings, $ex_subs, $in_subs)
|
|||
$statement = $db->prepare("SELECT post_id, org_id, sub, text,
|
||||
timestamp, name, tripcode
|
||||
FROM threads
|
||||
WHERE post_id = org_id
|
||||
WHERE org_id = original
|
||||
AND shadow = 'no'
|
||||
AND sub NOT IN ($out)
|
||||
ORDER BY ROWID DESC");
|
||||
|
@ -346,7 +346,7 @@ function print_individual_feed($db, $css, $settings, $ex_subs, $in_subs)
|
|||
$statement = $db->prepare("SELECT post_id, org_id, sub, text,
|
||||
timestamp, name, tripcode
|
||||
FROM threads
|
||||
WHERE post_id = org_id
|
||||
WHERE org_id = original
|
||||
AND shadow = 'no'
|
||||
AND sub IN ($in)
|
||||
ORDER BY ROWID DESC");
|
||||
|
@ -606,8 +606,7 @@ function print_header($css_file)
|
|||
// header( 'Pragma: no-cache', FALSE);
|
||||
|
||||
// nginx throws an error with those, and gives back 502 - bad gateway
|
||||
// does not happen with other versions, and also not in the desktop
|
||||
// version of the page - rather strange
|
||||
// does not happen with other versions
|
||||
|
||||
if ($css_file == 'no_file') {
|
||||
$html_string = '<!DOCTYPE html><html lang=\"en\"><head></head><body>';
|
||||
|
@ -853,7 +852,7 @@ function print_top_header($text)
|
|||
echo "<div class=\"header id=\"topheader\"><h1>$text</h1></div>";
|
||||
}
|
||||
|
||||
// Show each post in a sub
|
||||
// Show each post by a user
|
||||
function print_user($db, $name, $css, $settings)
|
||||
{
|
||||
|
||||
|
@ -906,11 +905,10 @@ function print_user($db, $name, $css, $settings)
|
|||
$html_string .= "<a href='/e/$sub/$post_id/$css'>edit</a> ";
|
||||
}
|
||||
|
||||
$html_string .= '</div>';
|
||||
|
||||
$html_string .= '</div><br></div><br>';
|
||||
|
||||
echo "$html_string";
|
||||
|
||||
echo "<br></div><br>";
|
||||
}
|
||||
|
||||
echo "</div>";
|
||||
|
|
Loading…
Reference in New Issue