fixed typo, fixed bug that would reappear shadowed posts after import

main
fuzzykitten 2025-04-13 06:17:50 -04:00
parent 51a9e8e961
commit b738ddee4e
1 changed files with 3 additions and 2 deletions

View File

@ -660,6 +660,7 @@ function import_overboard($db, $settings)
$text = $post['text']; $text = $post['text'];
$sub = $post['sub']; $sub = $post['sub'];
$org_id = $post['org_id']; $org_id = $post['org_id'];
$shadow = $post['shadow'];
if (!empty($post['timestamp'])) { if (!empty($post['timestamp'])) {
$timestamp = $post['timestamp']; $timestamp = $post['timestamp'];
@ -705,10 +706,10 @@ function import_overboard($db, $settings)
original, move_message, original, move_message,
edit_message) edit_message)
VALUES ('$post_id', '$sub', ?, VALUES ('$post_id', '$sub', ?,
'$org_id', 'no', '$global_id', '$org_id', '$shadow', '$global_id',
'$text_id', '$timestamp', '$text_id', '$timestamp',
'$name', '$tripcode', '$name', '$tripcode',
'$post_id', ?, ?')"); '$post_id', ?, ?)");
$statement->bindParam(1, $text); $statement->bindParam(1, $text);
$statement->bindParam(2, $move_message); $statement->bindParam(2, $move_message);
$statement->bindParam(3, $edit_message); $statement->bindParam(3, $edit_message);