mirror of
https://github.com/friendica/friendica
synced 2024-11-10 09:02:53 +00:00
Improved link comparism on attached links
This commit is contained in:
parent
6ab35c20e0
commit
eb8e6c5b22
1 changed files with 7 additions and 1 deletions
|
@ -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…
Reference in a new issue