mirror of
https://github.com/friendica/friendica
synced 2025-04-26 13:50:11 +00:00
Issue 10506 - again. Improved check for pictured in body
This commit is contained in:
parent
6331e1e71c
commit
dd2abf254d
2 changed files with 2 additions and 2 deletions
|
@ -637,7 +637,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'], $media['type'])) {
|
||||
if (Item::containsLink($body, $media['preview'] ?? $media['url'], $media['type'])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue