mirror of
https://github.com/friendica/friendica
synced 2025-04-24 18:30:11 +00:00
Issue 6128: Websub could work now
This commit is contained in:
parent
e6557ca9c5
commit
a5ddaa9dbc
2 changed files with 18 additions and 2 deletions
|
@ -1649,6 +1649,7 @@ function api_statuses_home_timeline($type)
|
|||
$data = ['status' => $ret];
|
||||
switch ($type) {
|
||||
case "atom":
|
||||
break;
|
||||
case "rss":
|
||||
$data = api_rss_extra($a, $data, $user_info);
|
||||
break;
|
||||
|
@ -1731,6 +1732,7 @@ function api_statuses_public_timeline($type)
|
|||
$data = ['status' => $ret];
|
||||
switch ($type) {
|
||||
case "atom":
|
||||
break;
|
||||
case "rss":
|
||||
$data = api_rss_extra($a, $data, $user_info);
|
||||
break;
|
||||
|
@ -1787,6 +1789,7 @@ function api_statuses_networkpublic_timeline($type)
|
|||
$data = ['status' => $ret];
|
||||
switch ($type) {
|
||||
case "atom":
|
||||
break;
|
||||
case "rss":
|
||||
$data = api_rss_extra($a, $data, $user_info);
|
||||
break;
|
||||
|
@ -2108,6 +2111,7 @@ function api_statuses_mentions($type)
|
|||
$data = ['status' => $ret];
|
||||
switch ($type) {
|
||||
case "atom":
|
||||
break;
|
||||
case "rss":
|
||||
$data = api_rss_extra($a, $data, $user_info);
|
||||
break;
|
||||
|
@ -2188,6 +2192,7 @@ function api_statuses_user_timeline($type)
|
|||
$data = ['status' => $ret];
|
||||
switch ($type) {
|
||||
case "atom":
|
||||
break;
|
||||
case "rss":
|
||||
$data = api_rss_extra($a, $data, $user_info);
|
||||
break;
|
||||
|
@ -2263,8 +2268,10 @@ function api_favorites_create_destroy($type)
|
|||
$data = ['status' => $ret];
|
||||
switch ($type) {
|
||||
case "atom":
|
||||
break;
|
||||
case "rss":
|
||||
$data = api_rss_extra($a, $data, $user_info);
|
||||
break;
|
||||
}
|
||||
|
||||
return api_format_data("status", $type, $data);
|
||||
|
@ -2330,8 +2337,10 @@ function api_favorites($type)
|
|||
$data = ['status' => $ret];
|
||||
switch ($type) {
|
||||
case "atom":
|
||||
break;
|
||||
case "rss":
|
||||
$data = api_rss_extra($a, $data, $user_info);
|
||||
break;
|
||||
}
|
||||
|
||||
return api_format_data("statuses", $type, $data);
|
||||
|
@ -3145,6 +3154,7 @@ function api_lists_statuses($type)
|
|||
$data = ['status' => $items];
|
||||
switch ($type) {
|
||||
case "atom":
|
||||
break;
|
||||
case "rss":
|
||||
$data = api_rss_extra($a, $data, $user_info);
|
||||
break;
|
||||
|
@ -3541,8 +3551,10 @@ function api_direct_messages_new($type)
|
|||
|
||||
switch ($type) {
|
||||
case "atom":
|
||||
break;
|
||||
case "rss":
|
||||
$data = api_rss_extra($a, $data, $sender);
|
||||
break;
|
||||
}
|
||||
|
||||
return api_format_data("direct-messages", $type, $data);
|
||||
|
@ -3807,8 +3819,10 @@ function api_direct_messages_box($type, $box, $verbose)
|
|||
$data = ['direct_message' => $ret];
|
||||
switch ($type) {
|
||||
case "atom":
|
||||
break;
|
||||
case "rss":
|
||||
$data = api_rss_extra($a, $data, $user_info);
|
||||
break;
|
||||
}
|
||||
|
||||
return api_format_data("direct-messages", $type, $data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue