Merge pull request #10304 from annando/fix-emptymissing-photos
Fix missing media on posts to Mastodon
This commit is contained in:
commit
0ca929dccd
|
@ -351,7 +351,7 @@ class Media
|
|||
|
||||
foreach ($attachments as $attachment) {
|
||||
// Only store attachments that are part of the unshared body
|
||||
if (strpos($unshared_body, $attachment['url']) !== false) {
|
||||
if (Item::containsLink($unshared_body, $attachment['url'], $attachment['type'])) {
|
||||
self::insert($attachment);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue