Move /parse_url module to /parseurl
- Update oexchange module to use BBCode::embedURL instead of a self-request - Remove mod/parse_url.php file - Restrict ParseUrl module to authenticated users
This commit is contained in:
parent
dc8ecbeb24
commit
3859b7ba10
12 changed files with 148 additions and 204 deletions
|
@ -30,7 +30,7 @@ function jotGetLink() {
|
|||
// Fallback: insert the attachment bbcode directly into the textarea
|
||||
// if the attachment live preview isn't available
|
||||
} else {
|
||||
$.get("parse_url?binurl=" + bin2hex(reply) + noAttachment, function (data) {
|
||||
$.get("parseurl?binurl=" + bin2hex(reply) + noAttachment, function (data) {
|
||||
addeditortext(data);
|
||||
$("#profile-rotator").hide();
|
||||
});
|
||||
|
|
|
@ -40,7 +40,7 @@ function commentGetLink(id, prompttext) {
|
|||
reply = prompt(prompttext);
|
||||
if (reply && reply.length) {
|
||||
reply = bin2hex(reply);
|
||||
$.get("parse_url?noAttachment=1&binurl=" + reply, function (data) {
|
||||
$.get("parseurl?noAttachment=1&binurl=" + reply, function (data) {
|
||||
addCommentText(data, id);
|
||||
});
|
||||
}
|
||||
|
@ -64,7 +64,7 @@ function commentLinkDrop(event, id) {
|
|||
event.preventDefault();
|
||||
if (reply && reply.length) {
|
||||
reply = bin2hex(reply);
|
||||
$.get("parse_url?noAttachment=1&binurl=" + reply, function (data) {
|
||||
$.get("parseurl?noAttachment=1&binurl=" + reply, function (data) {
|
||||
addCommentText(data, id);
|
||||
});
|
||||
}
|
||||
|
|
|
@ -223,7 +223,7 @@
|
|||
if (currentText.includes("[attachment") && currentText.includes("[/attachment]")) {
|
||||
noAttachment = '&noAttachment=1';
|
||||
}
|
||||
$.get('parse_url?binurl=' + reply + noAttachment, function(data) {
|
||||
$.get('parseurl?binurl=' + reply + noAttachment, function(data) {
|
||||
if (!editor) $("#profile-jot-text").val("");
|
||||
initEditor(function(){
|
||||
addeditortext(data);
|
||||
|
|
|
@ -129,7 +129,7 @@ function enableOnUser(){
|
|||
if(reply && reply.length) {
|
||||
reply = bin2hex(reply);
|
||||
$('#profile-rotator').show();
|
||||
$.get('parse_url?binurl=' + reply, function(data) {
|
||||
$.get('parseurl?binurl=' + reply, function(data) {
|
||||
addeditortext(data);
|
||||
$('#profile-rotator').hide();
|
||||
});
|
||||
|
@ -190,7 +190,7 @@ function enableOnUser(){
|
|||
if(reply && reply.length) {
|
||||
reply = bin2hex(reply);
|
||||
$('#profile-rotator').show();
|
||||
$.get('parse_url?binurl=' + reply, function(data) {
|
||||
$.get('parseurl?binurl=' + reply, function(data) {
|
||||
if (!editor) $("#profile-jot-text").val("");
|
||||
initEditor(function(){
|
||||
addeditortext(data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue