Browse Source

Consider nonoko in building after posting, improve comments

pull/68/head
discomrade 2 years ago
parent
commit
dd7737eee2
  1. 27
      post.php

27
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();
}
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();
}
// 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();
}
if (!$post['op'] && $noko)
buildIndex();
if ($post['op']) {
rebuildThemes('post-thread', $board['uri']);
} else {
rebuildThemes('post', $board['uri']);
}
}

Loading…
Cancel
Save