]> git.mxchange.org Git - friendica.git/commitdiff
Ensure parameter 4 of Post\Media::splitAttachment is a boolean value
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 20 Jun 2022 18:34:02 +0000 (14:34 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 20 Jun 2022 18:34:02 +0000 (14:34 -0400)
src/Model/Item.php

index 1e3326e285d5aab0fb1d413acfc1b92bdc9b1ea9..7acac695f1dc9d839eea6b9400c481515d99ee34 100644 (file)
@@ -2831,7 +2831,8 @@ class Item
                        $shared_uri_id = 0;
                        $shared_links = [];
                }
-               $attachments = Post\Media::splitAttachments($item['uri-id'], $item['guid'] ?? '', $shared_links, $item['has-media']);
+
+               $attachments = Post\Media::splitAttachments($item['uri-id'], $item['guid'] ?? '', $shared_links, $item['has-media'] ?? false);
                $item['body'] = self::replaceVisualAttachments($attachments, $item['body'] ?? '');
 
                $item['body'] = preg_replace("/\s*\[attachment .*?\].*?\[\/attachment\]\s*/ism", "\n", $item['body']);