mirror of
https://github.com/friendica/friendica
synced 2024-12-23 12:40:17 +00:00
Fix missing media on posts to Mastodon
This commit is contained in:
parent
4d214bd9cb
commit
36c5e360f6
1 changed files with 1 additions and 1 deletions
|
@ -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