(webId)
| 150 | } |
| 151 | |
| 152 | loadUser (webId) { |
| 153 | const serverUri = this.accountManager.host.serverUri |
| 154 | if (domainMatches(serverUri, webId)) { |
| 155 | return this.accountManager.userAccountFrom({ webId }) |
| 156 | } else { |
| 157 | debug(`WebID URI ${JSON.stringify(webId)} is not a local account, using it as an external WebID`) |
| 158 | return this.accountManager.userAccountFrom({ webId, username: webId, externalWebId: true }) |
| 159 | } |
| 160 | } |
| 161 | } |
no test coverage detected