mirror of
https://github.com/friendica/friendica
synced 2025-04-26 17:10:10 +00:00
Make the automatic title appending optional
This commit is contained in:
parent
91491dd798
commit
fa876d770e
4 changed files with 7 additions and 1 deletions
|
@ -3585,7 +3585,7 @@ class Diaspora
|
|||
$body = $item["body"];
|
||||
|
||||
// Fetch the title from an attached link - if there is one
|
||||
if (empty($item["title"])) {
|
||||
if (empty($item["title"]) && PConfig::get($owner['uid'], 'system', 'append_title')) {
|
||||
$page_data = BBCode::getAttachmentData($item['body']);
|
||||
if (!empty($page_data['type']) && !empty($page_data['title']) && ($page_data['type'] == 'link')) {
|
||||
$title = $page_data['title'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue