And that, honestly, feel best anyways.

This commit is contained in:
Zixaphir 2014-01-13 01:07:38 -07:00
parent 8d54c13d5f
commit c879594909
3 changed files with 8 additions and 16 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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,