Browse Source

Ignore identical provider and author

pull/10206/head
Michael 3 months ago
parent
commit
be29a42d74
  1. 8
      src/Model/Item.php

8
src/Model/Item.php

@ -2909,6 +2909,14 @@ class Item
if (!empty($data['description']) && (($data['title'] == $data['description']) || ($percent > 95) || (strpos($content, $data['description']) !== false))) {
$data['description'] = '';
}
if (!empty($data['author_name']) && !empty($data['provider_name'])) {
$data['author_name'] = '';
}
if (!empty($data['author_url']) && !empty($data['provider_url'])) {
$data['author_url'] = '';
}
} elseif (preg_match("/.*(\[attachment.*?\].*?\[\/attachment\]).*/ism", $body, $match)) {
$data = BBCode::getAttachmentData($match[1]);
}

Loading…
Cancel
Save