Revert "[BUG] Image reject repost board option now also affects YT embeds"

This reverts commit b476b66007.
This commit is contained in:
czaks 2016-06-21 05:03:44 +02:00
parent 8f4aa27329
commit 11cecf8452
2 changed files with 1 additions and 74 deletions

View file

@ -295,32 +295,6 @@ if (isset($_POST['delete'])) {
if (!isset($post['embed'])) {
error($config['error']['invalid_embed']);
}
if ($config['image_reject_repost']) {
if ($p = getPostByEmbed($post['embed'])) {
error(sprintf($config['error']['fileexists'],
($post['mod'] ? $config['root'] . $config['file_mod'] . '?/' : $config['root']) .
($board['dir'] . $config['dir']['res'] .
($p['thread'] ?
$p['thread'] . '.html#' . $p['id']
:
$p['id'] . '.html'
))
));
}
} else if (!$post['op'] && $config['image_reject_repost_in_thread']) {
if ($p = getPostByEmbedInThread($post['embed'], $post['thread'])) {
error(sprintf($config['error']['fileexistsinthread'],
($post['mod'] ? $config['root'] . $config['file_mod'] . '?/' : $config['root']) .
($board['dir'] . $config['dir']['res'] .
($p['thread'] ?
$p['thread'] . '.html#' . $p['id']
:
$p['id'] . '.html'
))
));
}
}
}
if (!hasPermission($config['mod']['bypass_field_disable'], $board['uri'])) {
@ -853,7 +827,7 @@ if (isset($_POST['delete'])) {
));
}
}
}
}
// Do filters again if OCRing
if ($config['tesseract_ocr'] && !hasPermission($config['mod']['bypass_filters'], $board['uri'])) {