Mercurial > pumpbridge
diff src/twitter.coffee @ 8:6fd0a307850f
check empty strings and users
author | Mathias Gebbe <mgebbe@intevation.de> |
---|---|
date | Wed, 11 Jun 2014 21:58:41 +0200 |
parents | 2123f355ab68 |
children | a52b5b244e51 |
line wrap: on
line diff
--- a/src/twitter.coffee Wed Jun 11 02:32:53 2014 +0200 +++ b/src/twitter.coffee Wed Jun 11 21:58:41 2014 +0200 @@ -108,7 +108,10 @@ (callback) -> Usermap.search {id: me + '_to_' + me}, callback (user, callback) -> - Pump.getUserFeed(user[0],callback) + if (user[0]?) + Pump.getUserFeed(user[0],callback) + else + return (feed, callback) -> ti = new Date().getTime() - interval async.eachSeries feed.items, ((post, callback) ->