From: Michael Date: Sun, 23 May 2021 13:29:25 +0000 (+0000) Subject: Fix missing media on posts to Mastodon X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=36c5e360f6d0a86c533395c8d68bde0be28eefb2;p=friendica.git Fix missing media on posts to Mastodon --- diff --git a/src/Model/Post/Media.php b/src/Model/Post/Media.php index c3f745fee6..7834fc4713 100644 --- a/src/Model/Post/Media.php +++ b/src/Model/Post/Media.php @@ -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); } }