# HG changeset patch # User Mathias Gebbe # Date 1403175671 -7200 # Node ID 08d9679da0f7ea7cefc6da0707f3493cf690ec4e # Parent 8c56fdbac0fb4ae39f4c7df65f18e050cab85142 s/wrotes/writes/ diff -r 8c56fdbac0fb -r 08d9679da0f7 src/facebook.coffee --- a/src/facebook.coffee Wed Jun 18 13:09:13 2014 +0200 +++ b/src/facebook.coffee Thu Jun 19 13:01:11 2014 +0200 @@ -359,7 +359,7 @@ if result.length is 0 body = post.object.content.replace(/<(?:.|\n)*?>/gm, '') + " " + post.object.url if post.verb is "share" - text = post.object.author.url + " wrotes:" + text = post.object.author.url + " writes:" FB.api "me/feed", "post", message: text + body , (res) -> diff -r 8c56fdbac0fb -r 08d9679da0f7 src/sync.coffee --- a/src/sync.coffee Wed Jun 18 13:09:13 2014 +0200 +++ b/src/sync.coffee Thu Jun 19 13:01:11 2014 +0200 @@ -64,7 +64,7 @@ parsed = "" #console.log "\n" + post.id + "\n" + user.id + user.displayName #PROFILE_LINK PROFILE_NAME PROFILE_PIC_LINK_80x80=$3 POST_LINK POST_TIME CONTENT - #text=' '$PROFILE_NAME' wrotes at '$POST_TIME':

'$CONTENT'' + #text=' '$PROFILE_NAME' writes at '$POST_TIME':

'$CONTENT'' if network is 'facebook' if user? and user.profilePicLink? @@ -73,15 +73,15 @@ profilePicLink = 'http://upload.wikimedia.org/wikipedia/commons/thumb/c/c2/F_icon.svg/80px-F_icon.svg.png' if post.type is 'status' - parsed = " " + user.displayName + " wrotes via " + network + " at " + post.updated_time + ":

" + post.message + parsed = " " + user.displayName + " writes via " + network + " at " + post.updated_time + ":

" + post.message if post.type is 'photo' - parsed = " " + user.displayName + " wrotes via " + network + " at " + post.updated_time + ":
" + parsed = " " + user.displayName + " writes via " + network + " at " + post.updated_time + ":
" parsed += "
" + post.message if post.message? and post.message isnt "" parsed += "
" if post.type is 'link' or post.type is 'video' - parsed = " " + user.displayName + " wrotes via " + network + " at " + post.updated_time + ":
" + parsed = " " + user.displayName + " writes via " + network + " at " + post.updated_time + ":
" parsed += "
" + post.message if post.message? and post.message isnt "" parsed += "
" + post.description if post.description? parsed += "
"+ post.link + "" if post.link? @@ -90,7 +90,7 @@ callback null, parsed if network is 'google' - parsed = " " + post.actor.displayName + " wrotes via " + network + " at " + post.updated + ":

" + post.object.content + parsed = " " + post.actor.displayName + " writes via " + network + " at " + post.updated + ":

" + post.object.content if not post.object.attachments? _.each post.object.attachments, (attachment) -> @@ -111,7 +111,7 @@ if network is 'twitter' - parsed = " " + post.user.name + " wrotes via " + network + " at " + post.created_at + ":

" + post.text + parsed = " " + post.user.name + " writes via " + network + " at " + post.created_at + ":

" + post.text _.each post.entities.media, (attachment) -> parsed += "
" callback null, parsed diff -r 8c56fdbac0fb -r 08d9679da0f7 src/twitter.coffee --- a/src/twitter.coffee Wed Jun 18 13:09:13 2014 +0200 +++ b/src/twitter.coffee Thu Jun 19 13:01:11 2014 +0200 @@ -128,7 +128,7 @@ re = new RegExp(String.fromCharCode(160), "g") text = text.replace(re, " ") if post.verb is "share" - status = post.object.author.url + " wrotes: " + status = post.object.author.url + " writes: " if text.length <= 140 status += text else