diff --git a/zen/ssb_INIT.sh b/zen/ssb_INIT.sh index 6bca3b4..771d7e8 100755 --- a/zen/ssb_INIT.sh +++ b/zen/ssb_INIT.sh @@ -135,9 +135,12 @@ $g1balance " # IF no AVATAR, publish message with QRCode if [[ ! $(file "/tmp/_g1.avatar.png" | grep 'PNG') ]]; then - sbotc publish '{"type":"post","text":"[My G1 Wallet QRCode]('"$id"')\nI am using [Cesium](https://cesium.app) to manage my wallet with (base64 to base58) secret.dunikey","mentions":[{"link":"'"$id"'","name":"'"$name"'","size":'"$size"',"type":"'"$type"'"}]}' + sbotc publish '{"type":"post","text":"[Flash QRCode]('"$id"') with [Cesium](https://cesium.app).\n Thank you.","mentions":[{"link":"'"$id"'","name":"'"$name"'","size":'"$size"',"type":"'"$type"'"}]}' else - sbotc publish '{"type":"post","text":"![Cesium Avatar]('"$id"')\n from my Wallet [Cesium](https://demo.cesium.app/#/app/wot/'"$g1pub"') '"$g1pub"'","mentions":[{"link":"'"$id"'","name":"'"$name"'","size":'"$size"',"type":"'"$type"'"}]}' + # Publish only if new avatar + if [[ $(diff /tmp/_g1.avatar.png ~/.zen/ipfs/.$ipfsnodeid/G1SSB/_g1.avatar.png) ]]; then + sbotc publish '{"type":"post","text":"![Cesium Avatar]('"$id"')\n from my Wallet [Cesium](https://demo.cesium.app/#/app/wot/'"$g1pub"') '"$g1pub"'","mentions":[{"link":"'"$id"'","name":"'"$name"'","size":'"$size"',"type":"'"$type"'"}]}' + fi fi echo "