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