fix statusnet_html timelines on api

pull/1/head
Friendika 2011-08-05 07:26:54 -07:00
parent 1d659bd854
commit 8ae0a8a94c
3 changed files with 3 additions and 2 deletions

View File

@ -740,7 +740,7 @@
'id' => intval($item['id']), 'id' => intval($item['id']),
'message_id' => $item['uri'], 'message_id' => $item['uri'],
'text' => strip_tags(bbcode($item['body'])), 'text' => strip_tags(bbcode($item['body'])),
'html' => bbcode($item['body']), 'statusnet_html' => bbcode($item['body']),
'source' => (($item['app']) ? $item['app'] : 'web'), 'source' => (($item['app']) ? $item['app'] : 'web'),
'url' => ($item['plink']!=''?$item['plink']:$item['author-link']), 'url' => ($item['plink']!=''?$item['plink']:$item['author-link']),
'truncated' => False, 'truncated' => False,

View File

@ -55,7 +55,7 @@
<activity:object-type>$status.objecttype</activity:object-type> <activity:object-type>$status.objecttype</activity:object-type>
<id>$status.message_id</id> <id>$status.message_id</id>
<title>$status.text</title> <title>$status.text</title>
<content type="html">$status.html</content> <content type="html">$status.statusnet_html</content>
<link rel="alternate" type="text/html" href="$status.url"/> <link rel="alternate" type="text/html" href="$status.url"/>
<activity:verb>$status.verb</activity:verb> <activity:verb>$status.verb</activity:verb>
<published>$status.published</published> <published>$status.published</published>

View File

@ -4,6 +4,7 @@
<created_at>$status.created_at</created_at> <created_at>$status.created_at</created_at>
<id>$status.id</id> <id>$status.id</id>
<text>$status.text</text> <text>$status.text</text>
<statusnet_html>$status.statusnet_html</statusnet_html>
<source>$status.source</source> <source>$status.source</source>
<truncated>$status.truncated</truncated> <truncated>$status.truncated</truncated>
<url>$status.url</url> <url>$status.url</url>