forked from leftypol/leftypol
Consider nonoko in building after posting, improve comments
This commit is contained in:
parent
7c2b091e32
commit
dd7737eee2
33
post.php
33
post.php
|
@ -1440,28 +1440,25 @@ function handle_post(){
|
|||
|
||||
if ($config['try_smarter'])
|
||||
$build_pages = range(1, $config['max_pages']);
|
||||
}
|
||||
|
||||
event('post-after', $post);
|
||||
|
||||
event('post-after', $post);
|
||||
|
||||
// If this is a new thread or the poster is returning to the index, let's build it before they redirect
|
||||
if ($post['op'] || !$noko)
|
||||
buildIndex();
|
||||
|
||||
// We are already done and post is visible to others, let's continue our heavy-lifting work in the background (if we run off FastCGI)
|
||||
if (function_exists('fastcgi_finish_request')) {
|
||||
@fastcgi_finish_request();
|
||||
}
|
||||
|
||||
// We are already done, let's continue our heavy-lifting work in the background (if we run off FastCGI)
|
||||
if (function_exists('fastcgi_finish_request')) {
|
||||
@fastcgi_finish_request();
|
||||
}
|
||||
|
||||
rebuildThemes('post-thread', $board['uri']);
|
||||
|
||||
} else {
|
||||
event('post-after', $post);
|
||||
|
||||
// We are already done and post is visible to others, let's continue our heavy-lifting work in the background (if we run off FastCGI)
|
||||
if (function_exists('fastcgi_finish_request')) {
|
||||
@fastcgi_finish_request();
|
||||
}
|
||||
|
||||
if (!$post['op'] && $noko)
|
||||
buildIndex();
|
||||
|
||||
|
||||
if ($post['op']) {
|
||||
rebuildThemes('post-thread', $board['uri']);
|
||||
} else {
|
||||
rebuildThemes('post', $board['uri']);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user