Add antibot to Element constructor in yukko themes, in the hope that posting from overboards as a normal user is not incorrectly blocked as spam / request looks automated.
This commit is contained in:
parent
fef6f0bef9
commit
a83a284e1d
@ -139,6 +139,12 @@
|
||||
$jsonFilename = $board['dir'] . 'threads.json';
|
||||
file_write($jsonFilename, $json);
|
||||
}
|
||||
$antibot = null;
|
||||
if (!$antibot) {
|
||||
$antibot = create_antibot($board['uri']);
|
||||
}
|
||||
$antibot->reset();
|
||||
|
||||
return Element('index.html', array(
|
||||
'config' => $config,
|
||||
'board' => $board,
|
||||
@ -146,7 +152,8 @@
|
||||
'body' => $body,
|
||||
'mod' => $mod,
|
||||
'boardlist' => createBoardlist($mod),
|
||||
'boards' => $boardsforukko )
|
||||
'boards' => $boardsforukko,
|
||||
'antibot' => $antibot )
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -44,7 +44,6 @@
|
||||
'name' => $this->settings['title'],
|
||||
'title' => sprintf($this->settings['subtitle'], $this->settings['thread_limit'])
|
||||
);
|
||||
|
||||
$boardsforukko2 = array();
|
||||
$query = '';
|
||||
foreach($boards as &$_board) {
|
||||
@ -139,6 +138,12 @@
|
||||
$jsonFilename = $board['dir'] . 'threads.json';
|
||||
file_write($jsonFilename, $json);
|
||||
}
|
||||
$antibot = null;
|
||||
if (!$antibot) {
|
||||
$antibot = create_antibot($board['uri']);
|
||||
}
|
||||
$antibot->reset();
|
||||
|
||||
return Element('index.html', array(
|
||||
'config' => $config,
|
||||
'board' => $board,
|
||||
@ -146,7 +151,8 @@
|
||||
'body' => $body,
|
||||
'mod' => $mod,
|
||||
'boardlist' => createBoardlist($mod),
|
||||
'boards' => $boardsforukko2 )
|
||||
'boards' => $boardsforukko2,
|
||||
'antibot' => $antibot )
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -139,6 +139,12 @@
|
||||
$jsonFilename = $board['dir'] . 'threads.json';
|
||||
file_write($jsonFilename, $json);
|
||||
}
|
||||
$antibot = null;
|
||||
if (!$antibot) {
|
||||
$antibot = create_antibot($board['uri']);
|
||||
}
|
||||
$antibot->reset();
|
||||
|
||||
return Element('index.html', array(
|
||||
'config' => $config,
|
||||
'board' => $board,
|
||||
@ -146,7 +152,8 @@
|
||||
'body' => $body,
|
||||
'mod' => $mod,
|
||||
'boardlist' => createBoardlist($mod),
|
||||
'boards' => $boardsforukko3 )
|
||||
'boards' => $boardsforukko3,
|
||||
'antibot' => $antibot )
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user