mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2024-12-28 14:38:52 +00:00
Fix issue
This commit is contained in:
parent
fed23994fa
commit
f51a20f0e4
@ -75,7 +75,7 @@ export class UserController {
|
||||
"lastName": user.lastName,
|
||||
"publicPage": user.pageStatus == UserPageStatus.PUBLIC,
|
||||
"openPage": user.pageStatus == UserPageStatus.OPEN,
|
||||
"virtualDirectory": user.virtualDirectory,
|
||||
"virtualDirectory": user.hasVirtualDirectory ? user.virtualDirectory : "",
|
||||
"accountImage": this.GetAccountImageURL(user.accountImage, h)
|
||||
};
|
||||
|
||||
|
@ -69,6 +69,12 @@ export class User implements UserBuilder {
|
||||
}
|
||||
}
|
||||
|
||||
get hasVirtualDirectory() : boolean {
|
||||
return this.virtualDirectory != null
|
||||
&& this.virtualDirectory != "null"
|
||||
&& this.virtualDirectory.length > 0
|
||||
}
|
||||
|
||||
get hasWebsite() : boolean {
|
||||
return this.personnalWebsite
|
||||
&& this.personnalWebsite != null
|
||||
|
Loading…
Reference in New Issue
Block a user