mirror of
https://github.com/friendica/friendica
synced 2025-04-25 20:30:11 +00:00
API: add private value (bool) to item results (#5647)
* API: add private value (bool) to item results friendica:private for xml friendica_privarte for json * API Docs: add a section about custom value returned in status data
This commit is contained in:
parent
dc3d2d5988
commit
93ba393559
2 changed files with 68 additions and 0 deletions
|
@ -2888,6 +2888,7 @@ function api_format_items($r, $user_info, $filter_user = false, $type = "json")
|
|||
'favorited' => $item['starred'] ? true : false,
|
||||
'user' => $status_user ,
|
||||
'friendica_owner' => $owner_user,
|
||||
'friendica_private' => $item['private'] == 1,
|
||||
//'entities' => NULL,
|
||||
'statusnet_html' => $converted["html"],
|
||||
'statusnet_conversation_id' => $item['parent'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue