Improved link comparism on attached links

2022.09-rc
Michael 2021-04-29 19:02:43 +00:00
rodzic 6ab35c20e0
commit eb8e6c5b22
1 zmienionych plików z 7 dodań i 1 usunięć

Wyświetl plik

@ -2838,7 +2838,13 @@ class Item
if (!empty($attachments['link'])) {
foreach ($attachments['link'] as $link) {
if (!in_array(strtolower($link['url']), $ignore_links)) {
$found = false;
foreach ($ignore_links as $ignore_link) {
if (Strings::compareLink($link['url'], $ignore_link)) {
$found = true;
}
}
if (!$found) {
$attachment = $link;
}
}