Change share message to ping @laquadrature

parent 4aff536a
Pipeline #1688 passed with stage
in 44 seconds
...@@ -86,6 +86,7 @@ Canvas.registerFont('./static/fonts/FiraSans-Bold.otf', {family: 'FiraSans', wei ...@@ -86,6 +86,7 @@ Canvas.registerFont('./static/fonts/FiraSans-Bold.otf', {family: 'FiraSans', wei
function ShareMessage(req) { function ShareMessage(req) {
let _req = req; let _req = req;
let _ = req.i18n._; let _ = req.i18n._;
let _lqdnName = "@laquadrature";
this.getUrl = function() { this.getUrl = function() {
return _req.protocol + '://' return _req.protocol + '://'
...@@ -99,7 +100,7 @@ function ShareMessage(req) { ...@@ -99,7 +100,7 @@ function ShareMessage(req) {
this.getTitle = function() { this.getTitle = function() {
return (_req.args.signature ? _('Faites comme ') + encodeURIComponent(_req.args.signature) + ', s' : 'S') return (_req.args.signature ? _('Faites comme ') + encodeURIComponent(_req.args.signature) + ', s' : 'S')
+ _('outenez ') + _('outenez ')
+ 'La Quadrature du Net ! #LQDoN'; + _lqdnName + ' ! #LQDoN';
} }
this.getContent = function() { this.getContent = function() {
...@@ -119,6 +120,7 @@ function ShareMessage(req) { ...@@ -119,6 +120,7 @@ function ShareMessage(req) {
} }
this.getDiasporaLink = function() { this.getDiasporaLink = function() {
_lqdnName = "La Quadrature du Net";
return 'https://share.diasporafoundation.org/?title=' return 'https://share.diasporafoundation.org/?title='
+ encodeURIComponent(this.getTitle() + ' ' + this.getContent()) + encodeURIComponent(this.getTitle() + ' ' + this.getContent())
+ '&url=' + encodeURIComponent(this.getUrl()); + '&url=' + encodeURIComponent(this.getUrl());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment