Merge pull request #7596 from annando/api-html

API Support "friendica_html"
This commit is contained in:
Hypolite Petovan 2019-09-04 16:51:36 -04:00 committed by GitHub
commit 1b4125c194
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3040,6 +3040,8 @@ function api_format_item($item, $type = "json", $status_user = null, $author_use
'statusnet_conversation_id' => $item['parent'],
'external_url' => System::baseUrl() . "/display/" . $item['guid'],
'friendica_activities' => api_format_items_activities($item, $type),
'friendica_title' => $item['title'],
'friendica_html' => BBCode::convert($item['body'], false)
];
if (count($converted["attachments"]) > 0) {