Browse Source

Improved link comparism on attached links

pull/10182/head
Michael 6 months ago
parent
commit
eb8e6c5b22
  1. 8
      src/Model/Item.php

8
src/Model/Item.php

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

Loading…
Cancel
Save