File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -41,11 +41,7 @@ class AccountTemplate {
41
41
* @throws if hostname already registered
42
42
*/
43
43
static registerHostname ( hostname ) {
44
- // if (this.hostname) {
45
- // throw new Error('hostname already registered')
46
- // } else {
47
44
this . hostname = hostname
48
- // }
49
45
}
50
46
51
47
/**
@@ -85,17 +81,17 @@ class AccountTemplate {
85
81
* @return {Object }
86
82
*/
87
83
static templateSubstitutionsFor ( userAccount ) {
88
- let realWebId
84
+ let podRelativeWebId
89
85
// this means the user's webId and server Uri are the same
90
- // therefore, we use a relative address
86
+ // therefore, we use a relative uri ref
91
87
if ( userAccount . webId . indexOf ( this . hostname ) > - 1 ) {
92
- realWebId = path . join ( '/' , userAccount . webId . substring ( userAccount . webId . indexOf ( this . hostname ) + this . hostname . length ) )
88
+ podRelativeWebId = path . join ( '/' , userAccount . webId . substring ( userAccount . webId . indexOf ( this . hostname ) + this . hostname . length ) )
93
89
} else {
94
- realWebId = userAccount . webId
90
+ podRelativeWebId = userAccount . webId
95
91
}
96
92
const substitutions = {
97
93
name : userAccount . displayName ,
98
- webId : realWebId , // userAccount.webId ,
94
+ webId : podRelativeWebId ,
99
95
email : userAccount . email ,
100
96
idp : userAccount . idp
101
97
}
You can’t perform that action at this time.
0 commit comments