forked from leftypol/leftypol
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
e09105cc79
commit
ec5dc28d55
1 changed files with 2 additions and 0 deletions
|
@ -1722,6 +1722,8 @@ function mod_deletebyip($boardName, $post, $global = false) {
|
||||||
|
|
||||||
rebuildThemes('post-delete', $board['uri']);
|
rebuildThemes('post-delete', $board['uri']);
|
||||||
|
|
||||||
|
buildIndex();
|
||||||
|
|
||||||
if ($post['thread'])
|
if ($post['thread'])
|
||||||
$threads_to_rebuild[$post['board']][$post['thread']] = true;
|
$threads_to_rebuild[$post['board']][$post['thread']] = true;
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue