diff options
author | myk bilokonsky <mbilokonsky@gmail.com> | 2017-04-15 14:14:31 +0200 |
---|---|---|
committer | myk bilokonsky <mbilokonsky@gmail.com> | 2017-04-15 14:14:31 +0200 |
commit | 4d8f4f9b0c64322977ad31689c17e5b64032047b (patch) | |
tree | d9b0b1a483a455f58ca576a96c40fd6b30181e3f | |
parent | f67c703463c280bdb097cf176e812430f626cd7a (diff) |
row_id => row.id
-rw-r--r-- | index.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/index.js b/index.js index 64d7b00..e24ad19 100644 --- a/index.js +++ b/index.js @@ -67,21 +67,19 @@ var boosted = (function() { function already(row) { const b = bucket(row); - return buckets.has(b) && buckets.get(b).has(row_id); + return buckets.has(b) && buckets.get(b).has(row.id); } function set(row) { const b = bucket(row); if (!buckets.has(b)) buckets.set(b, new Set()); - buckets.get(b).add(row_id); + buckets.get(b).add(row.id); } return { already: already, prune: prune, set: set }; })(); function boost(rows) { - console.log('Rows:'); - console.dir(rows); rows.filter(function(x) { return !boosted.already(x); }) .forEach(function(row) { M.post('/statuses/' + row.id + '/reblog', function(err, result) { |