Fix missing media on posts to Mastodon

2022.09-rc
Michael 2021-05-23 13:29:25 +00:00
rodzic 4d214bd9cb
commit 36c5e360f6
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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);
}
}