comparison src/google.coffee @ 19:6b3f38af3fa4

use child_process for backend
author Mathias Gebbe <mgebbe@intevation.de>
date Fri, 13 Jun 2014 18:13:36 +0200
parents c552faae9c1c
children b90e6df48d2d
comparison
equal deleted inserted replaced
18:c552faae9c1c 19:6b3f38af3fa4
47 async.each friends, ((friend, callback) -> 47 async.each friends, ((friend, callback) ->
48 async.waterfall [ 48 async.waterfall [
49 (callback) -> 49 (callback) ->
50 getStream(user, friend, callback) 50 getStream(user, friend, callback)
51 (stream, callback) -> 51 (stream, callback) ->
52 return if not stream? 52 return if not stream? or not stream.items? or stream.items.length is 0
53 async.each stream.items, ((post, cb) -> 53 async.each stream.items, ((post, cb) ->
54 async.waterfall [ 54 async.waterfall [
55 (callback) -> 55 (callback) ->
56 FromESN.search {uid: post.id + "@google_to_" + me, recipientUser: me}, callback 56 FromESN.search {uid: post.id + "@google_to_" + me, recipientUser: me}, callback
57 (result, callback) -> 57 (result, callback) ->
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)