Ignore identical provider and author

This commit is contained in:
Michael 2021-05-04 06:08:40 +00:00
parent b3e511eb0c
commit be29a42d74

View file

@ -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]);
}