aboutsummaryrefslogtreecommitdiffstats
path: root/include/api.php
diff options
context:
space:
mode:
authorMichael Vogel <icarus@dabo.de>2012-03-21 10:08:40 +0100
committerMichael Vogel <icarus@dabo.de>2012-03-21 10:08:40 +0100
commit792edfe9c834e3daeae598727e4cb15dc0ff8475 (patch)
tree78e076def37f3d3dda929e7d711bfaf903d22def /include/api.php
parent3393d80ac1af69eaa735a28284e23153735dde55 (diff)
downloadvolse-hubzilla-792edfe9c834e3daeae598727e4cb15dc0ff8475.tar.gz
volse-hubzilla-792edfe9c834e3daeae598727e4cb15dc0ff8475.tar.bz2
volse-hubzilla-792edfe9c834e3daeae598727e4cb15dc0ff8475.zip
New parameter in html2plain for plain text exports. More compatibility in API
Diffstat (limited to 'include/api.php')
-rwxr-xr-xinclude/api.php37
1 files changed, 35 insertions, 2 deletions
diff --git a/include/api.php b/include/api.php
index aacd47177..64772d657 100755
--- a/include/api.php
+++ b/include/api.php
@@ -785,6 +785,7 @@
api_register_func('api/statuses/show','api_statuses_show', true);
//api_register_func('api/statuses/mentions','api_statuses_mentions', true);
+ //api_register_func('api/statuses/replies','api_statuses_mentions', true);
function api_statuses_user_timeline(&$a, $type){
@@ -932,7 +933,7 @@
}
$status = array(
- 'text' => html2plain(bbcode($item['body']), 0),
+ 'text' => trim($item['title']." \n".html2plain(bbcode($item['body']), 0)),
'truncated' => False,
'created_at'=> api_date($item['created']),
'in_reply_to_status_id' => $in_reply_to_status_id,
@@ -1306,4 +1307,36 @@
api_register_func('api/oauth/request_token', 'api_oauth_request_token', false);
api_register_func('api/oauth/access_token', 'api_oauth_access_token', false);
-
+/*
+Not implemented by now:
+statuses/public_timeline
+statuses/mentions
+statuses/replies
+statuses/retweets_of_me
+statuses/destroy
+statuses/retweet
+friendships/create
+friendships/destroy
+friendships/exists
+friendships/show
+account/update_location
+account/update_profile_background_image
+account/update_profile_image
+favorites
+favorites/create
+favorites/destroy
+blocks/create
+blocks/destroy
+oauth/authorize
+
+Not implemented in status.net:
+statuses/retweeted_to_me
+statuses/retweeted_by_me
+direct_messages/destroy
+account/end_session
+account/update_delivery_device
+notifications/follow
+notifications/leave
+blocks/exists
+blocks/blocking
+*/