summaryrefslogtreecommitdiff
path: root/post.php
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-08-19 01:07:04 +1000
committerMichael Foster <savetheinternet@tinyboard.org>2013-08-19 01:07:04 +1000
commit154fbf50701652194d40cfdbfaa9eb4751678afb (patch)
tree4e41916baabb5b6308416315a42464f749adb067 /post.php
parent844a337e03b59c05b2b99cd2085aaec2c0648960 (diff)
Huge bug: undoImage() was not working at all. This means lots of Tinyboard users probably have lone/permanent images. Working on Tinyboard-Tools script to remove all images/thumbs that don't belong.
Diffstat (limited to 'post.php')
-rw-r--r--post.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/post.php b/post.php
index 572536de..d5e1c500 100644
--- a/post.php
+++ b/post.php
@@ -653,6 +653,7 @@ if (isset($_POST['delete'])) {
// Remove board directories before inserting them into the database.
if ($post['has_file']) {
$post['file_path'] = $post['file'];
+ $post['thumb_path'] = $post['thumb'];
$post['file'] = mb_substr($post['file'], mb_strlen($board['dir'] . $config['dir']['img']));
if ($is_an_image && $post['thumb'] != 'spoiler')
$post['thumb'] = mb_substr($post['thumb'], mb_strlen($board['dir'] . $config['dir']['thumb']));