mirror of
https://github.com/friendica/friendica
synced 2024-11-12 23:42:54 +00:00
Merge pull request #10507 from annando/issue-10506
Issue 10506: Fix for multiple picture posts
This commit is contained in:
commit
6331e1e71c
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue