#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'));
|
array('action' => 'qvitteradminsettings'));
|
||||||
$m->connect('main/qlogin',
|
$m->connect('main/qlogin',
|
||||||
array('action' => 'qvitterlogin'));
|
array('action' => 'qvitterlogin'));
|
||||||
URLMapperOverwrite::overwrite_variable($m, 'api/statuses/update.:format',
|
$m->connect('api/qvitter/statuses/update.:format',
|
||||||
array('action' => 'ApiStatusesUpdate'),
|
array('action' => 'ApiQvitterStatusesUpdate'),
|
||||||
array('format' => '(xml|json)'),
|
array('format' => '(xml|json)'));
|
||||||
'ApiQvitterStatusesUpdate');
|
|
||||||
|
|
||||||
|
|
||||||
// check if we should reroute UI to qvitter, and which home-stream the user wants (hide-replies or normal)
|
// check if we should reroute UI to qvitter, and which home-stream the user wants (hide-replies or normal)
|
||||||
$scoped = Profile::current();
|
$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) {
|
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,
|
cache: false,
|
||||||
type: "POST",
|
type: "POST",
|
||||||
data: {
|
data: {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user