Mercurial > pumpbridge > pumpbridge
comparison src/facebook.coffee @ 31:8238d312e281
var checks
author | Mathias Gebbe <mgebbe@intevation.de> |
---|---|
date | Tue, 30 Sep 2014 07:30:54 +0200 |
parents | 3e3fa35e3ce2 |
children |
comparison
equal
deleted
inserted
replaced
30:3e3fa35e3ce2 | 31:8238d312e281 |
---|---|
100 FromESN.search {recipientUser: me}, callback | 100 FromESN.search {recipientUser: me}, callback |
101 (allESN, callback) -> | 101 (allESN, callback) -> |
102 async.eachLimit allESN, 10, ((fromesn, callback) -> | 102 async.eachLimit allESN, 10, ((fromesn, callback) -> |
103 async.waterfall [ | 103 async.waterfall [ |
104 (cb) -> | 104 (cb) -> |
105 if fromesn.sourcePost.indexOf('www.facebook.com') is -1 | 105 if fromesn.sourcePost.indexOf('facebook.com') is -1 |
106 return | 106 return |
107 Usermap.search {id: me + '_to_' + me}, cb | 107 Usermap.search {id: me + '_to_' + me}, cb |
108 (pumpuser, cb) -> | 108 (pumpuser, cb) -> |
109 Pump.getNote(pumpuser[0], fromesn.pumpPost, cb) | 109 Pump.getNote(pumpuser[0], fromesn.pumpPost, cb) |
110 (note, cb) -> | 110 (note, cb) -> |