#350 reroute qvitter's ApiQvitterStatusesUpdate to its own url instead
This commit is contained in:
parent
89110d38f5
commit
7ad39a5315
|
@ -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();
|
||||
|
|
|
@ -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: {
|
||||
|
|
Loading…
Reference in New Issue
Block a user