summaryrefslogtreecommitdiff
path: root/post.php
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2016-06-21 05:03:44 +0200
committerczaks <marcin@6irc.net>2016-06-21 05:03:44 +0200
commit11cecf8452d724b1a61e82292cff1cc16a5403e7 (patch)
tree79649e61155ab8826eeb1361bf1517da1a911b9b /post.php
parent8f4aa2732900afc837d5154f518dc3a683f58bd1 (diff)
Revert "[BUG] Image reject repost board option now also affects YT embeds"
This reverts commit b476b660073adbe827836a7e7860b0fb3a061ff0.
Diffstat (limited to 'post.php')
-rw-r--r--post.php28
1 files changed, 1 insertions, 27 deletions
diff --git a/post.php b/post.php
index 383154fb..aa1b8235 100644
--- a/post.php
+++ b/post.php
@@ -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'])) {