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) {
|
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 (strpos($unshared_body, $attachment['url']) !== false) {
|
if (Item::containsLink($unshared_body, $attachment['url'], $attachment['type'])) {
|
||||||
self::insert($attachment);
|
self::insert($attachment);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue