# HG changeset patch # User Mathias Gebbe # Date 1406642765 -7200 # Node ID 34cfa565f565794384ca4dc93718405945b8e56e # Parent faeb3b96bdeb4c6260161f2e54e2c606b50b4b70 replace fromESN twitter links with html diff -r faeb3b96bdeb -r 34cfa565f565 INSTALL.md --- a/INSTALL.md Tue Jul 29 12:14:02 2014 +0200 +++ b/INSTALL.md Tue Jul 29 16:06:05 2014 +0200 @@ -20,6 +20,7 @@ cp app.js_to_pump.io-client-app_lib node_modules/pump.io-client-app/lib/app.js cp index.js_to_pump.io-client-app_lib_routes node_modules/pump.io-client-app/lib/routes/index.js mkdir -p lib/ && coffee -b -c -o lib/ src/*.coffee +cp src/restartSYNC.sh lib/restartSYNC.sh ``` * configure your Facebook App ID and your Google App ID in diff -r faeb3b96bdeb -r 34cfa565f565 src/restartSYNC.sh --- a/src/restartSYNC.sh Tue Jul 29 12:14:02 2014 +0200 +++ b/src/restartSYNC.sh Tue Jul 29 16:06:05 2014 +0200 @@ -1,8 +1,8 @@ #!/bin/bash -cd /home/pumpbridge/pumpbridge/src +cd /home/pumpbridge/pumpbridge/lib -until coffee syncALONE.coffee; do +until node syncALONE.js; do echo "sync crashed with exit code $?. Respawning.." >&2 sleep 1 done diff -r faeb3b96bdeb -r 34cfa565f565 src/sync.coffee --- a/src/sync.coffee Tue Jul 29 12:14:02 2014 +0200 +++ b/src/sync.coffee Tue Jul 29 16:06:05 2014 +0200 @@ -111,6 +111,7 @@ if network is 'twitter' + post.text = post.text.replace(/(http[s]?:\/\/[^ ]+)/ig,'$1<\/a>') parsed = " " + post.user.name + " writes via " + network + " at " + post.created_at + ":

" + post.text _.each post.entities.media, (attachment) -> parsed += "
"