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:
parent
3f38a6db97
commit
8951cb74c8
@ -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…
Reference in New Issue
Block a user