more
This commit is contained in:
parent
4ae08d2c11
commit
d051ac77f7
@ -49,12 +49,13 @@
|
|||||||
}).catch(function(resp) {
|
}).catch(function(resp) {
|
||||||
return [];
|
return [];
|
||||||
});
|
});
|
||||||
|
console.log(j);
|
||||||
if (j.legnth) {
|
if (j.legnth) {
|
||||||
var e = document.getElementById("post_body_{{post.PostHash}}");
|
var e = document.getElementById("post_body_{{post.PostHash}}");
|
||||||
if(e) {
|
if(e) {
|
||||||
var link = document.createElement("a");
|
|
||||||
var u = new URL(j[0].ReferencedURI);
|
var u = new URL(j[0].ReferencedURI);
|
||||||
if(u.protocol === "https" || u.protocol === "http") {
|
if(u.protocol === "https" || u.protocol === "http") {
|
||||||
|
var link = document.createElement("a");
|
||||||
link.href = u.toString();
|
link.href = u.toString();
|
||||||
link.innerText = "[Link]";
|
link.innerText = "[Link]";
|
||||||
e.appendChild(txt);
|
e.appendChild(txt);
|
||||||
|
Reference in New Issue
Block a user