mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-12 10:04:26 +02: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
|
@ -3330,9 +3330,9 @@ class Diaspora
|
|||
|
||||
// Fetch the title from an attached link - if there is one
|
||||
if (empty($item['title']) && DI::pConfig()->get($owner['uid'], 'system', 'attach_link_title')) {
|
||||
$page_data = BBCode::getAttachmentData($item['body']);
|
||||
if (!empty($page_data['type']) && !empty($page_data['title']) && ($page_data['type'] == 'link')) {
|
||||
$title = $page_data['title'];
|
||||
$media = Post\Media::getByURIId($item['uri-id'], [Post\Media::HTML]);
|
||||
if (!empty($media) && !empty($media[0]['name']) && ($media[0]['name'] != $media[0]['url'])) {
|
||||
$title = $media[0]['name'];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue