]> git.mxchange.org Git - friendica.git/commitdiff
Link preview text and description added to search text.
authorMichael <heluecht@pirati.ca>
Sat, 13 Jan 2024 15:46:37 +0000 (15:46 +0000)
committerRoland Häder <roland@mxchange.org>
Sun, 28 Jan 2024 15:37:43 +0000 (16:37 +0100)
src/Content/Text/BBCode.php

index 835a96e4d3b58c158b4fcaef3560f4edd6402af6..ac241213d445d912b9273965617cfbe94a4bb688 100644 (file)
@@ -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)) {