Browse Source

fix statusnet_html timelines on api

pull/1/head
Friendika 10 years ago
parent
commit
8ae0a8a94c
  1. 2
      include/api.php
  2. 2
      view/api_timeline_atom.tpl
  3. 1
      view/api_timeline_xml.tpl

2
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,

2
view/api_timeline_atom.tpl

@ -55,7 +55,7 @@
<activity:object-type>$status.objecttype</activity:object-type>
<id>$status.message_id</id>
<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"/>
<activity:verb>$status.verb</activity:verb>
<published>$status.published</published>

1
view/api_timeline_xml.tpl

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

Loading…
Cancel
Save