Commit 168608cd authored by Thibaut Broggi's avatar Thibaut Broggi

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
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());
......
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