Merge pull request #10304 from annando/fix-emptymissing-photos

Fix missing media on posts to Mastodon
pull/10305/head
Tobias Diekershoff 2021-05-23 15:34:34 +02:00 zatwierdzone przez GitHub
commit 0ca929dccd
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
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);
}
}