And that, honestly, feel best anyways.
This commit is contained in:
parent
8d54c13d5f
commit
c879594909
@ -3108,18 +3108,15 @@
|
||||
};
|
||||
},
|
||||
allQuotelinksLinkingTo: function(post) {
|
||||
var ID, handleQuotes, qLconcat, quote, quotedPost, quotelinks, quoterPost, _i, _len, _ref, _ref1, _ref2;
|
||||
var ID, handleQuotes, quote, quotedPost, quotelinks, quoterPost, _i, _len, _ref, _ref1, _ref2;
|
||||
quotelinks = [];
|
||||
qLconcat = function(links) {
|
||||
return quotelinks.push.apply(quotelinks, links);
|
||||
};
|
||||
handleQuotes = function(post) {
|
||||
var clone, _i, _len, _ref;
|
||||
qLconcat(post.nodes.quotelinks);
|
||||
quotelinks.push.apply(quotelinks, post.nodes.quotelinks);
|
||||
_ref = post.clones;
|
||||
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
||||
clone = _ref[_i];
|
||||
qLconcat(clone.nodes.quotelinks);
|
||||
quotelinks.push.apply(quotelinks, clone.nodes.quotelinks);
|
||||
}
|
||||
};
|
||||
_ref = g.posts;
|
||||
|
||||
@ -3118,18 +3118,15 @@
|
||||
};
|
||||
},
|
||||
allQuotelinksLinkingTo: function(post) {
|
||||
var ID, handleQuotes, qLconcat, quote, quotedPost, quotelinks, quoterPost, _i, _len, _ref, _ref1, _ref2;
|
||||
var ID, handleQuotes, quote, quotedPost, quotelinks, quoterPost, _i, _len, _ref, _ref1, _ref2;
|
||||
quotelinks = [];
|
||||
qLconcat = function(links) {
|
||||
return quotelinks.push.apply(quotelinks, links);
|
||||
};
|
||||
handleQuotes = function(post) {
|
||||
var clone, _i, _len, _ref;
|
||||
qLconcat(post.nodes.quotelinks);
|
||||
quotelinks.push.apply(quotelinks, post.nodes.quotelinks);
|
||||
_ref = post.clones;
|
||||
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
||||
clone = _ref[_i];
|
||||
qLconcat(clone.nodes.quotelinks);
|
||||
quotelinks.push.apply(quotelinks, clone.nodes.quotelinks);
|
||||
}
|
||||
};
|
||||
_ref = g.posts;
|
||||
|
||||
@ -40,12 +40,10 @@ Get =
|
||||
allQuotelinksLinkingTo: (post) ->
|
||||
# Get quotelinks & backlinks linking to the given post.
|
||||
quotelinks = []
|
||||
qLconcat = (links) ->
|
||||
quotelinks.push links...
|
||||
handleQuotes = (post) ->
|
||||
qLconcat post.nodes.quotelinks
|
||||
quotelinks.push post.nodes.quotelinks...
|
||||
for clone in post.clones
|
||||
qLconcat clone.nodes.quotelinks
|
||||
quotelinks.push clone.nodes.quotelinks...
|
||||
return
|
||||
# First:
|
||||
# In every posts,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user