summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--index.js6
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) {