Browse Source

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.
pull/40/head
Michael D. Reiley 8 years ago
committed by GitHub
parent
commit
8951cb74c8
  1. 2
      inc/mod/pages.php

2
inc/mod/pages.php

@ -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

Loading…
Cancel
Save