forked from leftypol/leftypol
Consider nonoko in building after posting, improve comments
This commit is contained in:
parent
a1b6ca71b4
commit
e39f342008
1 changed files with 15 additions and 18 deletions
33
post.php
33
post.php
|
@ -1440,28 +1440,25 @@ function handle_post(){
|
||||||
|
|
||||||
if ($config['try_smarter'])
|
if ($config['try_smarter'])
|
||||||
$build_pages = range(1, $config['max_pages']);
|
$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();
|
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)
|
// 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')) {
|
if (function_exists('fastcgi_finish_request')) {
|
||||||
@fastcgi_finish_request();
|
@fastcgi_finish_request();
|
||||||
}
|
}
|
||||||
|
|
||||||
rebuildThemes('post-thread', $board['uri']);
|
if (!$post['op'] && $noko)
|
||||||
|
|
||||||
} 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();
|
|
||||||
}
|
|
||||||
|
|
||||||
buildIndex();
|
buildIndex();
|
||||||
|
|
||||||
|
if ($post['op']) {
|
||||||
|
rebuildThemes('post-thread', $board['uri']);
|
||||||
|
} else {
|
||||||
rebuildThemes('post', $board['uri']);
|
rebuildThemes('post', $board['uri']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue