mirror of
https://github.com/friendica/friendica
synced 2025-04-23 07:10:14 +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
|
@ -2883,7 +2883,7 @@ class Item
|
|||
|
||||
// @todo In the future we should make a single for the template engine with all media in it. This allows more flexibilty.
|
||||
foreach ($attachments['visual'] as $attachment) {
|
||||
if (self::containsLink($item['body'], $attachment['url'], $attachment['type'])) {
|
||||
if (self::containsLink($item['body'], $attachment['preview'] ?? $attachment['url'], $attachment['type'])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue