mirror of
https://github.com/friendica/friendica
synced 2024-11-10 02:22:55 +00:00
Link preview text and description added to search text.
This commit is contained in:
parent
a30b9e6927
commit
1eeef896fe
1 changed files with 4 additions and 0 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue