From: Sarven Capadisli Date: Mon, 22 Feb 2010 23:27:41 +0000 (+0100) Subject: Leaves the original URL alone and adds ? or & when it does the XHR. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3b823f8fbde531b00f9770fb214543b965851036;p=quix0rs-gnu-social.git Leaves the original URL alone and adds ? or & when it does the XHR. --- diff --git a/plugins/OStatus/js/ostatus.js b/plugins/OStatus/js/ostatus.js index 148a05f6f6..1fc44b21b6 100644 --- a/plugins/OStatus/js/ostatus.js +++ b/plugins/OStatus/js/ostatus.js @@ -63,11 +63,10 @@ SN.U.DialogBox = { f.show(); } else { - a[0].href = (a[0].href.match(/[\\?]/) === null) ? a[0].href+'?' : a[0].href+'&'; $.ajax({ type: 'GET', dataType: 'xml', - url: a[0].href+'ajax=1', + url: a[0].href + ((a[0].href.match(/[\\?]/) === null)?'?':'&') + 'ajax=1', beforeSend: function(formData) { a.addClass('processing'); },