Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Fix public album detection for comments sidebar using credentials check

Anand Baburajan796339e771c5
diff --git a/web/packages/gallery/components/viewer/CommentsSidebar.tsx b/web/packages/gallery/components/viewer/CommentsSidebar.tsx
index e6522d291c..22929d6843 100644
--- a/web/packages/gallery/components/viewer/CommentsSidebar.tsx
+++ b/web/packages/gallery/components/viewer/CommentsSidebar.tsx
@@ -655,7 +655,7 @@ export const CommentsSidebar: React.FC<CommentsSidebarProps> = ({
}, [file, fileNormalCollectionIDs]);
// Check if this is a public album
- const isPublicAlbum = shouldOnlyServeAlbumsApp;
+ const isPublicAlbum = shouldOnlyServeAlbumsApp || !!publicAlbumsCredentials;
// Build collection info list with comment counts and cover files (shared albums only)
const collectionsInfo = useMemo((): CollectionInfo[] => {