From 1eeef896fe420a2de74575ba3808ad85208c26f7 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 13 Jan 2024 15:46:37 +0000 Subject: [PATCH] Link preview text and description added to search text. --- src/Content/Text/BBCode.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Content/Text/BBCode.php b/src/Content/Text/BBCode.php index efaa9f7c79..dc82262c9e 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)) {