From 168608cdb5636459a58b0caccc9a88b9f315824e Mon Sep 17 00:00:00 2001 From: Thibaut Broggi Date: Tue, 21 Nov 2017 15:18:32 +0100 Subject: [PATCH] Change share message to ping @laquadrature --- srv.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/srv.js b/srv.js index 6c15bc4..ba7b7e9 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()); -- GitLab