API: Path to post added / "external_url" support

This commit is contained in:
Michael 2017-12-17 15:16:18 +00:00
parent 5aa870454b
commit 26a89aa6ed

View file

@ -1326,6 +1326,7 @@ function api_status_show($type)
'lang' => "",
'statusnet_html' => $converted["html"],
'statusnet_conversation_id' => $lastwall['parent'],
'external_url' => System::baseUrl() . "/display/" . $lastwall['guid'],
);
if (count($converted["attachments"]) > 0) {
@ -1414,6 +1415,7 @@ function api_users_show($type)
'favorited' => $lastwall['starred'] ? true : false,
'statusnet_html' => $converted["html"],
'statusnet_conversation_id' => $lastwall['parent'],
'external_url' => System::baseUrl() . "/display/" . $lastwall['guid'],
);
if (count($converted["attachments"]) > 0) {
@ -2781,6 +2783,7 @@ function api_format_items($r, $user_info, $filter_user = false, $type = "json")
//'entities' => NULL,
'statusnet_html' => $converted["html"],
'statusnet_conversation_id' => $item['parent'],
'external_url' => System::baseUrl() . "/display/" . $item['guid'],
'friendica_activities' => api_format_items_activities($item, $type),
);