Fix link comparism

pull/10182/head
Michael 2021-04-29 18:23:04 +00:00
parent 5c9a5e736c
commit 6ab35c20e0
1 changed files with 5 additions and 3 deletions

View File

@ -30,6 +30,7 @@ use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Util\Images;
use Friendica\Util\ParseUrl;
use Friendica\Util\Strings;
/**
* Class Media
@ -465,9 +466,10 @@ class Media
$selected = '';
foreach ($media as $medium) {
$medium['url'] = strtolower($medium['url']);
if (in_array($medium['url'], $links)) {
continue;
foreach ($links as $link) {
if (Strings::compareLink($link, $medium['url'])) {
continue 2;
}
}
$type = explode('/', current(explode(';', $medium['mimetype'])));