forked from GNUsocial/gnu-social
Qvitter API changes (thanks hannes2peer)
I implemented changes from quitter.se's new API that their front-end qvitter uses, https://github.com/hannesmannerheim/qvitter/blob/master/api-changes-1.1.1/CHANGES However I left out the URL shortening commens, since I believe whatever behaviour they experienced that caused them to implement this was a bug (or many) and should be fixed in their proper areas and that shortening should not be entirely left out in API calls.
This commit is contained in:
@@ -460,6 +460,41 @@ class Router
|
||||
'id' => '[0-9]+',
|
||||
'format' => '(xml|json)'));
|
||||
|
||||
// START qvitter API additions
|
||||
|
||||
$m->connect('api/statuses/favs/:id.json',
|
||||
array('action' => 'ApiStatusesFavs',
|
||||
'id' => '[0-9]+'));
|
||||
|
||||
$m->connect('api/attachment/:id.json',
|
||||
array('action' => 'ApiAttachment',
|
||||
'id' => '[0-9]+'));
|
||||
|
||||
$m->connect('api/checkhub.json',
|
||||
array('action' => 'ApiCheckHub'));
|
||||
|
||||
$m->connect('api/externalprofile/show.json',
|
||||
array('action' => 'ApiExternalProfileShow'));
|
||||
|
||||
$m->connect('api/statusnet/groups/admins/:id.:format',
|
||||
array('action' => 'ApiGroupAdmins',
|
||||
'id' => Nickname::INPUT_FMT,
|
||||
'format' => '(xml|json)'));
|
||||
|
||||
$m->connect('api/account/update_link_color.json',
|
||||
array('action' => 'ApiAccountUpdateLinkColor'));
|
||||
|
||||
$m->connect('api/account/update_background_color.json',
|
||||
array('action' => 'ApiAccountUpdateBackgroundColor'));
|
||||
|
||||
$m->connect('api/account/register.json',
|
||||
array('action' => 'ApiAccountRegister'));
|
||||
|
||||
$m->connect('api/check_nickname.json',
|
||||
array('action' => 'ApiCheckNickname'));
|
||||
|
||||
// END qvitter API additions
|
||||
|
||||
// users
|
||||
|
||||
$m->connect('api/users/show/:id.:format',
|
||||
@@ -773,6 +808,7 @@ class Router
|
||||
// Tags
|
||||
$m->connect('api/statusnet/tags/timeline/:tag.:format',
|
||||
array('action' => 'ApiTimelineTag',
|
||||
'tag' => self::REGEX_TAG,
|
||||
'format' => '(xml|json|rss|atom|as)'));
|
||||
|
||||
// media related
|
||||
|
Reference in New Issue
Block a user