From: Michael Date: Sat, 13 Jan 2024 15:46:37 +0000 (+0000) Subject: Link preview text and description added to search text. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e6e6d590a113b788ac55b29dce428a275143153a;p=friendica.git Link preview text and description added to search text. --- diff --git a/src/Content/Text/BBCode.php b/src/Content/Text/BBCode.php index 835a96e4d3..ac241213d4 100644 --- a/src/Content/Text/BBCode.php +++ b/src/Content/Text/BBCode.php @@ -258,6 +258,10 @@ class BBCode // Add images because of possible alt texts if (!empty($uri_id)) { $text = Post\Media::addAttachmentsToBody($uri_id, $text, [Post\Media::IMAGE]); + + foreach (Post\Media::getByURIId($uri_id, [Post\Media::HTML]) as $media) { + $text .= ' ' . $media['name'] . ' ' . $media['description']; + } } if (empty($text)) {