From 1b5bf6b0ff1af3f3bda4ed85a059ceb9e923c3b0 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Thu, 20 Mar 2014 18:44:24 +0100 Subject: [PATCH] API: Add the title to the html output. --- include/api.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/api.php b/include/api.php index 80f448c26..ea1ba27e4 100644 --- a/include/api.php +++ b/include/api.php @@ -821,6 +821,9 @@ 'statusnet_conversation_id' => $lastwall['parent'], ); + if ($lastwall['title'] != "") + $status_info['statusnet_html'] = "

".bbcode($lastwall['title'])."

\n".$status_info['statusnet_html']; + $entities = api_get_entitities($status_info['text'], $lastwall['body']); if (count($entities) > 0) $status_info['entities'] = $entities; @@ -915,6 +918,9 @@ 'statusnet_conversation_id' => $lastwall['parent'], ); + if ($lastwall['title'] != "") + $user_info['statusnet_html'] = "

".bbcode($lastwall['title'])."

\n".$user_info['statusnet_html']; + $entities = api_get_entitities($user_info['text'], $lastwall['body']); if (count($entities) > 0) $user_info['entities'] = $entities; @@ -1842,6 +1848,9 @@ 'statusnet_conversation_id' => $item['parent'], ); + if ($item['title'] != "") + $status['statusnet_html'] = "

".bbcode($item['title'])."

\n".$status['statusnet_html']; + $entities = api_get_entitities($status['text'], $item['body']); if (count($entities) > 0) $status['entities'] = $entities;