From: Michael Date: Thu, 19 Dec 2019 07:19:03 +0000 (+0000) Subject: API: Missing endpoint for reshares had been added X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1c7bc56cb3a50661b77bdc51ebac8cab1ed7af7c;p=friendica.git API: Missing endpoint for reshares had been added --- diff --git a/include/api.php b/include/api.php index a32efa37e4..8b5f3315bd 100644 --- a/include/api.php +++ b/include/api.php @@ -2851,9 +2851,10 @@ function api_format_items_activities($item, $type = "json") 'attendyes' => [], 'attendno' => [], 'attendmaybe' => [], + 'announce' => [], ]; - $condition = ['uid' => $item['uid'], 'thr-parent' => $item['uri']]; + $condition = ['uid' => $item['uid'], 'thr-parent' => $item['uri'], 'gravity' => GRAVITY_ACTIVITY]; $ret = Item::selectForUser($item['uid'], ['author-id', 'verb'], $condition); while ($parent_item = Item::fetch($ret)) { @@ -2878,6 +2879,9 @@ function api_format_items_activities($item, $type = "json") case Activity::ATTENDMAYBE: $activities['attendmaybe'][] = $user; break; + case Activity::ANNOUNCE: + $activities['announce'][] = $user; + break; default: break; }