mirror of
https://github.com/friendica/friendica
synced 2024-11-18 21:43:40 +00:00
Issue 10506: Fix for multiple picture posts
This commit is contained in:
parent
2a873651c5
commit
feab53b58b
1 changed files with 2 additions and 2 deletions
|
@ -224,7 +224,7 @@ class Media
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fetch media data from local resources
|
* Fetch media data from local resources
|
||||||
* @param array $media
|
* @param array $media
|
||||||
* @return array media with added data
|
* @return array media with added data
|
||||||
*/
|
*/
|
||||||
private static function fetchLocalData(array $media)
|
private static function fetchLocalData(array $media)
|
||||||
|
@ -388,7 +388,7 @@ class Media
|
||||||
|
|
||||||
foreach ($attachments as $attachment) {
|
foreach ($attachments as $attachment) {
|
||||||
// Only store attachments that are part of the unshared body
|
// 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);
|
self::insert($attachment);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue