1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-28 01:10:51 +01:00

Don't create anti-bot stuff in buildThread() when asked to return HTML as a string.

This commit is contained in:
Michael Foster 2013-08-13 21:53:23 +10:00
parent c6e629bf89
commit 07b825c6d2

View File

@ -1755,7 +1755,7 @@ function buildThread($id, $return = false, $mod = false) {
'config' => $config, 'config' => $config,
'id' => $id, 'id' => $id,
'mod' => $mod, 'mod' => $mod,
'antibot' => $mod ? false : create_antibot($board['uri'], $id), 'antibot' => $mod || $return ? false : create_antibot($board['uri'], $id),
'boardlist' => createBoardlist($mod), 'boardlist' => createBoardlist($mod),
'return' => ($mod ? '?' . $board['url'] . $config['file_index'] : $config['root'] . $board['dir'] . $config['file_index']) 'return' => ($mod ? '?' . $board['url'] . $config['file_index'] : $config['root'] . $board['dir'] . $config['file_index'])
)); ));