Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LQDN Adminsys
generateur-slogans
Commits
168608cd
Verified
Commit
168608cd
authored
Nov 21, 2017
by
Thibaut Broggi
Browse files
Change share message to ping @laquadrature
parent
4aff536a
Pipeline
#1688
passed with stage
in 44 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
srv.js
View file @
168608cd
...
...
@@ -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
());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment