#350 reroute qvitter's ApiQvitterStatusesUpdate to its own url instead

This commit is contained in:
Hannes Mannerheim 2016-01-14 20:50:17 +01:00
parent 89110d38f5
commit 7ad39a5315
2 changed files with 4 additions and 6 deletions

View File

@ -216,11 +216,9 @@ class QvitterPlugin extends Plugin {
array('action' => 'qvitteradminsettings'));
$m->connect('main/qlogin',
array('action' => 'qvitterlogin'));
URLMapperOverwrite::overwrite_variable($m, 'api/statuses/update.:format',
array('action' => 'ApiStatusesUpdate'),
array('format' => '(xml|json)'),
'ApiQvitterStatusesUpdate');
$m->connect('api/qvitter/statuses/update.:format',
array('action' => 'ApiQvitterStatusesUpdate'),
array('format' => '(xml|json)'));
// check if we should reroute UI to qvitter, and which home-stream the user wants (hide-replies or normal)
$scoped = Profile::current();

View File

@ -500,7 +500,7 @@ function APIJoinOrLeaveGroup(joinOrLeave,group_id,this_element,actionOnSuccess)
· · · · · · · · · · · · · */
function postQueetToAPI(queetText_txt, in_reply_to_status_id, postToGroups, actionOnSuccess) {
$.ajax({ url: window.apiRoot + 'statuses/update.json',
$.ajax({ url: window.apiRoot + 'qvitter/statuses/update.json',
cache: false,
type: "POST",
data: {