Rebuild themes after stickying or locking post, so that catalog gets rebuilt

This commit is contained in:
Benjamin Southall 2019-08-26 05:38:22 +10:00
parent eefa9e3790
commit 2b741c7477
2 changed files with 6 additions and 1 deletions

View file

@ -26,7 +26,8 @@
$b->build($settings, $board);
}
}
} elseif ($action == 'post-thread' || ($settings['update_on_posts'] && $action == 'post') || ($settings['update_on_posts'] && $action == 'post-delete') && in_array($board, $boards)) {
} elseif ($action == 'post-thread' || ($settings['update_on_posts'] && $action == 'post') || ($settings['update_on_posts'] && $action == 'post-delete')
|| $action == 'sticky' || $action == 'lock' && in_array($board, $boards)) {
$b = new Catalog($settings);
$action = generation_strategy("sb_catalog", array($board));