repo.or.cz
/
gitter.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Gitter migration: Setup redirects (rollout pt. 3)
[gitter.git]
/
shared
/
get-profile-url-from-virtual-user.js
blob
5d794c36c8ecc254521861b02f235a4e316763ea
1
'use strict'
;
2
3
function
getProfileUrlFromVirtualUser
(
virtualUser
) {
4
if
(
virtualUser
.
type
===
'matrix'
) {
5
return
`https://matrix.to/#/@
${virtualUser.externalId}
?utm_source=gitter`
;
6
}
7
8
return null
;
9
}
10
11
module
.
exports
=
getProfileUrlFromVirtualUser
;