mirror of
https://github.com/friendica/friendica
synced 2025-04-24 15:10:11 +00:00
Issue 10232: Improved search for embedded media links
This commit is contained in:
parent
4d214bd9cb
commit
b7a7ae58e9
2 changed files with 11 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue