diff --git a/srv.js b/srv.js index 6c15bc47aff4a29f1a4cefe84c63f2c0c26e330a..ba7b7e98d392122d0f8092528216750facfe1123 100755 --- a/srv.js +++ b/srv.js @@ -86,6 +86,7 @@ Canvas.registerFont('./static/fonts/FiraSans-Bold.otf', {family: 'FiraSans', wei function ShareMessage(req) { let _req = req; let _ = req.i18n._; + let _lqdnName = "@laquadrature"; this.getUrl = function() { return _req.protocol + '://' @@ -99,7 +100,7 @@ function ShareMessage(req) { this.getTitle = function() { return (_req.args.signature ? _('Faites comme ') + encodeURIComponent(_req.args.signature) + ', s' : 'S') + _('outenez ') - + 'La Quadrature du Net ! #LQDoN'; + + _lqdnName + ' ! #LQDoN'; } this.getContent = function() { @@ -119,6 +120,7 @@ function ShareMessage(req) { } this.getDiasporaLink = function() { + _lqdnName = "La Quadrature du Net"; return 'https://share.diasporafoundation.org/?title=' + encodeURIComponent(this.getTitle() + ' ' + this.getContent()) + '&url=' + encodeURIComponent(this.getUrl());