Rebuild index when mod deletes a thread.

The index does not properly rebuild when a mod deletes a thread, resulting in a ghost thread remaining in the index until the next rebuild. This fix was originally contributed to Uboachan's codebase by Mannosuke.
This commit is contained in:
Michael D. Reiley 2016-09-22 23:03:11 -07:00 committed by GitHub
parent 3f38a6db97
commit 8951cb74c8

View File

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