Merge pull request #198 from seisatsu/patch-1

Rebuild index when mod deletes a thread.
This commit is contained in:
Marcin Łabanowski 2016-09-23 09:24:05 +02:00 committed by GitHub
commit a4b619ae5e

View File

@ -1721,6 +1721,8 @@ function mod_deletebyip($boardName, $post, $global = false) {
deletePost($post['id'], false, false);
rebuildThemes('post-delete', $board['uri']);
buildIndex();
if ($post['thread'])
$threads_to_rebuild[$post['board']][$post['thread']] = true;