From 8ae0a8a94c359769662b1907abb518b3f51912aa Mon Sep 17 00:00:00 2001 From: Friendika Date: Fri, 5 Aug 2011 07:26:54 -0700 Subject: [PATCH] fix statusnet_html timelines on api --- include/api.php | 2 +- view/api_timeline_atom.tpl | 2 +- view/api_timeline_xml.tpl | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/api.php b/include/api.php index 6cd3318ef..3c692cf74 100644 --- a/include/api.php +++ b/include/api.php @@ -740,7 +740,7 @@ 'id' => intval($item['id']), 'message_id' => $item['uri'], 'text' => strip_tags(bbcode($item['body'])), - 'html' => bbcode($item['body']), + 'statusnet_html' => bbcode($item['body']), 'source' => (($item['app']) ? $item['app'] : 'web'), 'url' => ($item['plink']!=''?$item['plink']:$item['author-link']), 'truncated' => False, diff --git a/view/api_timeline_atom.tpl b/view/api_timeline_atom.tpl index aef1f9310..0e427feaa 100644 --- a/view/api_timeline_atom.tpl +++ b/view/api_timeline_atom.tpl @@ -55,7 +55,7 @@ $status.objecttype $status.message_id $status.text - $status.html + $status.statusnet_html $status.verb $status.published diff --git a/view/api_timeline_xml.tpl b/view/api_timeline_xml.tpl index 9914f6475..17860ca61 100644 --- a/view/api_timeline_xml.tpl +++ b/view/api_timeline_xml.tpl @@ -4,6 +4,7 @@ $status.created_at $status.id $status.text + $status.statusnet_html $status.source $status.truncated $status.url