From eb8e6c5b22abaf576b30b6797fe9fe088d804fd5 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 29 Apr 2021 19:02:43 +0000 Subject: [PATCH] Improved link comparism on attached links --- src/Model/Item.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Model/Item.php b/src/Model/Item.php index 40d3150415..3516a57bde 100644 --- a/src/Model/Item.php +++ b/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; } }