Fix duplicate backlinks
This commit is contained in:
parent
cb39424dea
commit
495567682b
@ -4690,6 +4690,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
QuoteBacklink = {
|
QuoteBacklink = {
|
||||||
|
containers: {},
|
||||||
init: function() {
|
init: function() {
|
||||||
var format;
|
var format;
|
||||||
if (g.VIEW === 'catalog' || !Conf['Quote Backlinks']) {
|
if (g.VIEW === 'catalog' || !Conf['Quote Backlinks']) {
|
||||||
@ -4697,7 +4698,6 @@
|
|||||||
}
|
}
|
||||||
format = Conf['backlink'].replace(/%id/g, "' + id + '");
|
format = Conf['backlink'].replace(/%id/g, "' + id + '");
|
||||||
this.funk = Function('id', "return '" + format + "'");
|
this.funk = Function('id', "return '" + format + "'");
|
||||||
this.containers = {};
|
|
||||||
Post.callbacks.push({
|
Post.callbacks.push({
|
||||||
name: 'Quote Backlinking Part 1',
|
name: 'Quote Backlinking Part 1',
|
||||||
cb: this.firstNode
|
cb: this.firstNode
|
||||||
@ -11935,6 +11935,7 @@
|
|||||||
g.threads = {};
|
g.threads = {};
|
||||||
g.BOARD.posts = {};
|
g.BOARD.posts = {};
|
||||||
g.BOARD.threads = {};
|
g.BOARD.threads = {};
|
||||||
|
QuoteBacklink.containers = {};
|
||||||
return $.rmAll($('.board'));
|
return $.rmAll($('.board'));
|
||||||
},
|
},
|
||||||
features: [['Thread Excerpt', ThreadExcerpt], ['Unread Count', Unread], ['Quote Threading', QuoteThreading], ['Thread Stats', ThreadStats], ['Thread Updater', ThreadUpdater], ['Thread Expansion', ExpandThread]],
|
features: [['Thread Excerpt', ThreadExcerpt], ['Unread Count', Unread], ['Quote Threading', QuoteThreading], ['Thread Stats', ThreadStats], ['Thread Updater', ThreadUpdater], ['Thread Expansion', ExpandThread]],
|
||||||
|
|||||||
@ -4693,6 +4693,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
QuoteBacklink = {
|
QuoteBacklink = {
|
||||||
|
containers: {},
|
||||||
init: function() {
|
init: function() {
|
||||||
var format;
|
var format;
|
||||||
if (g.VIEW === 'catalog' || !Conf['Quote Backlinks']) {
|
if (g.VIEW === 'catalog' || !Conf['Quote Backlinks']) {
|
||||||
@ -4700,7 +4701,6 @@
|
|||||||
}
|
}
|
||||||
format = Conf['backlink'].replace(/%id/g, "' + id + '");
|
format = Conf['backlink'].replace(/%id/g, "' + id + '");
|
||||||
this.funk = Function('id', "return '" + format + "'");
|
this.funk = Function('id', "return '" + format + "'");
|
||||||
this.containers = {};
|
|
||||||
Post.callbacks.push({
|
Post.callbacks.push({
|
||||||
name: 'Quote Backlinking Part 1',
|
name: 'Quote Backlinking Part 1',
|
||||||
cb: this.firstNode
|
cb: this.firstNode
|
||||||
@ -11924,6 +11924,7 @@
|
|||||||
g.threads = {};
|
g.threads = {};
|
||||||
g.BOARD.posts = {};
|
g.BOARD.posts = {};
|
||||||
g.BOARD.threads = {};
|
g.BOARD.threads = {};
|
||||||
|
QuoteBacklink.containers = {};
|
||||||
return $.rmAll($('.board'));
|
return $.rmAll($('.board'));
|
||||||
},
|
},
|
||||||
features: [['Thread Excerpt', ThreadExcerpt], ['Unread Count', Unread], ['Quote Threading', QuoteThreading], ['Thread Stats', ThreadStats], ['Thread Updater', ThreadUpdater], ['Thread Expansion', ExpandThread]],
|
features: [['Thread Excerpt', ThreadExcerpt], ['Unread Count', Unread], ['Quote Threading', QuoteThreading], ['Thread Stats', ThreadStats], ['Thread Updater', ThreadUpdater], ['Thread Expansion', ExpandThread]],
|
||||||
|
|||||||
@ -34,6 +34,8 @@ Navigate =
|
|||||||
g.BOARD.posts = {}
|
g.BOARD.posts = {}
|
||||||
g.BOARD.threads = {}
|
g.BOARD.threads = {}
|
||||||
|
|
||||||
|
QuoteBacklink.containers = {}
|
||||||
|
|
||||||
# Delete nodes
|
# Delete nodes
|
||||||
$.rmAll $ '.board'
|
$.rmAll $ '.board'
|
||||||
|
|
||||||
|
|||||||
@ -10,12 +10,12 @@ QuoteBacklink =
|
|||||||
# Second callback adds relevant containers into posts.
|
# Second callback adds relevant containers into posts.
|
||||||
# This is is so that fetched posts can get their backlinks,
|
# This is is so that fetched posts can get their backlinks,
|
||||||
# and that as much backlinks are appended in the background as possible.
|
# and that as much backlinks are appended in the background as possible.
|
||||||
|
containers: {}
|
||||||
init: ->
|
init: ->
|
||||||
return if g.VIEW is 'catalog' or !Conf['Quote Backlinks']
|
return if g.VIEW is 'catalog' or !Conf['Quote Backlinks']
|
||||||
|
|
||||||
format = Conf['backlink'].replace /%id/g, "' + id + '"
|
format = Conf['backlink'].replace /%id/g, "' + id + '"
|
||||||
@funk = Function 'id', "return '#{format}'"
|
@funk = Function 'id', "return '#{format}'"
|
||||||
@containers = {}
|
|
||||||
Post.callbacks.push
|
Post.callbacks.push
|
||||||
name: 'Quote Backlinking Part 1'
|
name: 'Quote Backlinking Part 1'
|
||||||
cb: @firstNode
|
cb: @firstNode
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user