File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,10 @@ https://json-ld.github.io/minutes/{{gDate}}/
7979
8080#w3c #json-ld` ;
8181
82+ const TWITTER_BODY = `JSON-LD CG discusses {{message}}:
83+ https://json-ld.github.io/minutes/{{gDate}}/ #w3c #json-ld` ;
84+
85+
8286/************************* Utility Functions *********************************/
8387function postToWordpress ( username , password , content , callback ) {
8488 var client = wp . createClient ( {
@@ -423,9 +427,8 @@ async.waterfall([ function(callback) {
423427 }
424428 } , function ( err , results ) {
425429 // construct the tweet
426- var tweet = 'JSON-LD CG discusses ' +
427- results . message + ': https://json-ld.github.io/minutes/' +
428- gDate + '/ #w3c #json-ld' ;
430+ var tweet = Mustache . render ( TWITTER_BODY ,
431+ { message : results . message , gDate} ) ;
429432
430433 // send the tweet
431434 twitter . updateStatus ( tweet , function ( data ) {
You can’t perform that action at this time.
0 commit comments