mirror of
https://github.com/friendica/friendica
synced 2025-04-28 02:30:16 +00:00
The function "getAttachedData" has been removed
This commit is contained in:
parent
27cc346f8a
commit
eafe54f2dd
7 changed files with 56 additions and 299 deletions
|
@ -1211,9 +1211,9 @@ class Feed
|
|||
}
|
||||
|
||||
// Fetch information about the post
|
||||
$siteinfo = BBCode::getAttachedData($item['body']);
|
||||
if (isset($siteinfo['title'])) {
|
||||
return $siteinfo['title'];
|
||||
$media = Post\Media::getByURIId($item['uri-id'], [Post\Media::HTML]);
|
||||
if (!empty($media) && !empty($media[0]['name']) && ($media[0]['name'] != $media[0]['url'])) {
|
||||
return $media[0]['name'];
|
||||
}
|
||||
|
||||
// If no bookmark is found then take the first line
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue