From 36c5e360f6d0a86c533395c8d68bde0be28eefb2 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 23 May 2021 13:29:25 +0000 Subject: [PATCH] Fix missing media on posts to Mastodon --- src/Model/Post/Media.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }