mirror of
https://github.com/docmost/docmost.git
synced 2025-11-15 06:11:08 +10:00
refactor layout
* ui polishing * frontend and backend fixes
This commit is contained in:
@ -28,9 +28,17 @@ export function getCollaborationUrl(): string {
|
||||
}
|
||||
|
||||
export function getAvatarUrl(avatarUrl: string) {
|
||||
if (!avatarUrl) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (avatarUrl.startsWith("http")) {
|
||||
return avatarUrl;
|
||||
}
|
||||
|
||||
return getBackendUrl() + "/attachments/img/avatar/" + avatarUrl;
|
||||
}
|
||||
|
||||
export function getSpaceUrl(spaceSlug: string) {
|
||||
return "/s/" + spaceSlug;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user