π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Fix public album detection for like button using credentials check
Anand Baburajanfd741c3729e5
diff --git a/web/packages/gallery/components/viewer/FileViewer.tsx b/web/packages/gallery/components/viewer/FileViewer.tsxindex 805dabf164..99d017c012 100644--- a/web/packages/gallery/components/viewer/FileViewer.tsx+++ b/web/packages/gallery/components/viewer/FileViewer.tsx@@ -706,7 +706,11 @@ export const FileViewer: React.FC<FileViewerProps> = ({// - If gallery view: show album selector (like) OR unlike selector/direct delete// - If collection view: toggle like in that collectionconst handleLikeClick = useCallback(() => {- if (shouldOnlyServeAlbumsApp) {+ // Detect public album: albums-only build OR we have public album credentials+ const isPublicAlbum =+ shouldOnlyServeAlbumsApp || !!publicAlbumsCredentials;++ if (isPublicAlbum) {const file = activeAnnotatedFileRef.current?.file;if (!file || !publicAlbumsCredentials) {setOpenPublicLikeModal(true);