diff options
| author | Michael D. Reiley <seisatsu@users.noreply.github.com> | 2016-09-22 23:03:11 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-09-22 23:03:11 -0700 |
| commit | 8951cb74c8fbface07e38308994bc2fe480e3c82 (patch) | |
| tree | ae42ba85c8385b88a0ec23f9cbf99ce4f53dde99 /inc/mod/pages.php | |
| parent | 3f38a6db9760c618c61cab4d892ea5632771231e (diff) | |
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.
Diffstat (limited to 'inc/mod/pages.php')
| -rw-r--r-- | inc/mod/pages.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/inc/mod/pages.php b/inc/mod/pages.php index 303fa3dd..c3e98af5 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -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; |
