API: Add the title to the html output.
This commit is contained in:
parent
a50484c27d
commit
1b5bf6b0ff
1 changed files with 9 additions and 0 deletions
|
@ -821,6 +821,9 @@
|
||||||
'statusnet_conversation_id' => $lastwall['parent'],
|
'statusnet_conversation_id' => $lastwall['parent'],
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if ($lastwall['title'] != "")
|
||||||
|
$status_info['statusnet_html'] = "<h4>".bbcode($lastwall['title'])."</h4>\n".$status_info['statusnet_html'];
|
||||||
|
|
||||||
$entities = api_get_entitities($status_info['text'], $lastwall['body']);
|
$entities = api_get_entitities($status_info['text'], $lastwall['body']);
|
||||||
if (count($entities) > 0)
|
if (count($entities) > 0)
|
||||||
$status_info['entities'] = $entities;
|
$status_info['entities'] = $entities;
|
||||||
|
@ -915,6 +918,9 @@
|
||||||
'statusnet_conversation_id' => $lastwall['parent'],
|
'statusnet_conversation_id' => $lastwall['parent'],
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if ($lastwall['title'] != "")
|
||||||
|
$user_info['statusnet_html'] = "<h4>".bbcode($lastwall['title'])."</h4>\n".$user_info['statusnet_html'];
|
||||||
|
|
||||||
$entities = api_get_entitities($user_info['text'], $lastwall['body']);
|
$entities = api_get_entitities($user_info['text'], $lastwall['body']);
|
||||||
if (count($entities) > 0)
|
if (count($entities) > 0)
|
||||||
$user_info['entities'] = $entities;
|
$user_info['entities'] = $entities;
|
||||||
|
@ -1842,6 +1848,9 @@
|
||||||
'statusnet_conversation_id' => $item['parent'],
|
'statusnet_conversation_id' => $item['parent'],
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if ($item['title'] != "")
|
||||||
|
$status['statusnet_html'] = "<h4>".bbcode($item['title'])."</h4>\n".$status['statusnet_html'];
|
||||||
|
|
||||||
$entities = api_get_entitities($status['text'], $item['body']);
|
$entities = api_get_entitities($status['text'], $item['body']);
|
||||||
if (count($entities) > 0)
|
if (count($entities) > 0)
|
||||||
$status['entities'] = $entities;
|
$status['entities'] = $entities;
|
||||||
|
|
Loading…
Reference in a new issue