Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

Update default avatar setup

Smaug67393ecd0f1e007a
diff --git a/frontend/app/composables/utils.ts b/frontend/app/composables/utils.ts
index 9c38cb1f..7f04a9e4 100644
--- a/frontend/app/composables/utils.ts
+++ b/frontend/app/composables/utils.ts
@@ -9,7 +9,7 @@ export const isMobile = () => (import.meta.client ? window.innerWidth <= 768 : f
export const isTablet = () => (import.meta.client ? window.innerWidth <= 1280 : false);
export function useAvatar(user?: User): string {
- return user?.avatar ? CDN + '/' + user.id + '/avatar' : CDN + '/default_avatar.png';
+ return user?.avatar ? CDN + '/' + user.id + '/avatar' : '/default_avatar.avif';
}
export const appColors = ['default', 'blue', 'red', 'green', 'yellow', 'purple', 'pink', 'teal', 'grey'];
diff --git a/frontend/public/default_avatar.avif b/frontend/public/default_avatar.avif
new file mode 100644
index 00000000..5baa86f9
Binary files /dev/null and b/frontend/public/default_avatar.avif differ