Fix backlinks
This commit is contained in:
parent
fd76d85c07
commit
541882103a
@ -1175,7 +1175,7 @@
|
|||||||
|
|
||||||
Post.prototype.parseQuote = function(quotelink) {
|
Post.prototype.parseQuote = function(quotelink) {
|
||||||
var fullID, match;
|
var fullID, match;
|
||||||
if (!(match = quotelink.href.match(/boards\.4chan\.org\/([^\/]+)\/(res|thread)\/\d+(.*)?\#p(\d+)$/))) {
|
if (!(match = quotelink.href.match(/boards\.4chan\.org\/([^\/]+)\/(res|thread)\/\d+.*\#p(\d+)$/))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.nodes.quotelinks.push(quotelink);
|
this.nodes.quotelinks.push(quotelink);
|
||||||
|
|||||||
@ -1231,7 +1231,7 @@
|
|||||||
|
|
||||||
Post.prototype.parseQuote = function(quotelink) {
|
Post.prototype.parseQuote = function(quotelink) {
|
||||||
var fullID, match;
|
var fullID, match;
|
||||||
if (!(match = quotelink.href.match(/boards\.4chan\.org\/([^\/]+)\/(res|thread)\/\d+(.*)?\#p(\d+)$/))) {
|
if (!(match = quotelink.href.match(/boards\.4chan\.org\/([^\/]+)\/(res|thread)\/\d+.*\#p(\d+)$/))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.nodes.quotelinks.push(quotelink);
|
this.nodes.quotelinks.push(quotelink);
|
||||||
|
|||||||
@ -101,8 +101,8 @@ class Post
|
|||||||
return unless match = quotelink.href.match ///
|
return unless match = quotelink.href.match ///
|
||||||
boards\.4chan\.org/
|
boards\.4chan\.org/
|
||||||
([^/]+) # boardID
|
([^/]+) # boardID
|
||||||
/(res|thread)/\d+
|
/thread/\d+
|
||||||
(.*)? # thread slug
|
.* # thread slug
|
||||||
\#p(\d+) # postID
|
\#p(\d+) # postID
|
||||||
$
|
$
|
||||||
///
|
///
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user