]> git.mxchange.org Git - friendica.git/commitdiff
API Support "friendica_html"
authorMichael <heluecht@pirati.ca>
Tue, 3 Sep 2019 21:11:33 +0000 (21:11 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 3 Sep 2019 21:11:33 +0000 (21:11 +0000)
include/api.php

index 4be0ff24afb9707959cfe1371d19ce6af4ca7640..bdab20b75a2231c477676d78ff93db7343914d69 100644 (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) {