1
0
Fork 0
mirror of https://git.friendi.ca/friendica/friendica.git synced 2025-08-22 21:44:01 +00:00

Issue 10506: Fix for multiple picture posts

This commit is contained in:
Michael 2021-07-17 04:32:46 +00:00
parent 2a873651c5
commit feab53b58b

View file

@ -388,7 +388,7 @@ class Media
foreach ($attachments as $attachment) {
// Only store attachments that are part of the unshared body
if (Item::containsLink($unshared_body, $attachment['url'], $attachment['type'])) {
if (Item::containsLink($unshared_body, $attachment['preview'] ?? $attachment['url'], $attachment['type'])) {
self::insert($attachment);
}
}