Issue 10232: Improved search for embedded media links

This commit is contained in:
Michael 2021-05-23 12:35:05 +00:00
parent 4d214bd9cb
commit b7a7ae58e9
2 changed files with 11 additions and 4 deletions

View file

@ -600,7 +600,7 @@ class Media
$body = preg_replace("/\s*\[attachment .*?\].*?\[\/attachment\]\s*/ism", '', $body);
foreach (self::getByURIId($uriid, [self::IMAGE, self::AUDIO, self::VIDEO]) as $media) {
if (Item::containsLink($body, $media['url'])) {
if (Item::containsLink($body, $media['url'], $media['type'])) {
continue;
}