]> 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)
committerMichael <heluecht@pirati.ca>
Sat, 13 Jan 2024 15:46:37 +0000 (15:46 +0000)
src/Content/Text/BBCode.php

index efaa9f7c79648356679b100772dbf1e08ec5f4be..dc82262c9e2bd6460b27c2f5a2f1ece17bdc4667 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)) {