Mercurial > pumpbridge
comparison src/twitter.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 |
---|---|
133 if post.verb is "share" | 133 if post.verb is "share" |
134 status = post.object.author.url + " writes: " | 134 status = post.object.author.url + " writes: " |
135 if text.length <= 140 | 135 if text.length <= 140 |
136 status += text | 136 status += text |
137 else | 137 else |
138 status += text.substr(0, 140 - (post.object.url.length + 2)) + ".." + post.object.url | 138 status += text.substr(0, 140 - (post.object.url.length + 2)) + " " + post.object.url |
139 twit.verifyCredentials((data) -> | 139 twit.verifyCredentials((data) -> |
140 #console.log util.inspect(data) | 140 #console.log util.inspect(data) |
141 return | 141 return |
142 ).updateStatus status, (data) -> | 142 ).updateStatus status, (data) -> |
143 async.waterfall [ | 143 async.waterfall [ |