From 799ff777977cb46485c46a659848f92772aadf77 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Wed, 23 Mar 2016 10:24:01 +0100 Subject: [PATCH] API: Support for the conversation api call from GNU Social --- doc/api.md | 12 ++++++++++++ include/api.php | 1 + 2 files changed, 13 insertions(+) diff --git a/doc/api.md b/doc/api.md index bf287585d3..7d6f440c58 100644 --- a/doc/api.md +++ b/doc/api.md @@ -388,6 +388,18 @@ Friendica doesn't allow showing friends of other users. --- ### statusnet/config (*) +--- +### statusnet/conversation (*; AUTH) +It shows all direct answers (excluding the original post) to a given id. + +#### Parameter +* id: id of the post +* count: Items per page (default: 20) +* page: page number +* since_id: minimal id +* max_id: maximum id +* include_entities: "true" shows entities for pictures and links (Default: false) + --- ### statusnet/version (*) diff --git a/include/api.php b/include/api.php index 699b066d25..a494e3cdd9 100644 --- a/include/api.php +++ b/include/api.php @@ -1550,6 +1550,7 @@ return api_apply_template("timeline", $type, $data); } api_register_func('api/conversation/show','api_conversation_show', true); + api_register_func('api/statusnet/conversation','api_conversation_show', true); /** -- 2.39.5