mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-24 07:30:10 +01:00
Don't create anti-bot stuff in buildThread() when asked to return HTML as a string.
This commit is contained in:
parent
c6e629bf89
commit
07b825c6d2
@ -1755,7 +1755,7 @@ function buildThread($id, $return = false, $mod = false) {
|
||||
'config' => $config,
|
||||
'id' => $id,
|
||||
'mod' => $mod,
|
||||
'antibot' => $mod ? false : create_antibot($board['uri'], $id),
|
||||
'antibot' => $mod || $return ? false : create_antibot($board['uri'], $id),
|
||||
'boardlist' => createBoardlist($mod),
|
||||
'return' => ($mod ? '?' . $board['url'] . $config['file_index'] : $config['root'] . $board['dir'] . $config['file_index'])
|
||||
));
|
||||
|
Loading…
Reference in New Issue
Block a user