π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Disable join album by default for public links
Anand Baburajanb8c1662469dc
diff --git a/mobile/apps/photos/lib/gateways/collections/collection_share_gateway.dart b/mobile/apps/photos/lib/gateways/collections/collection_share_gateway.dartindex 4c6918c279..80ae6da29e 100644--- a/mobile/apps/photos/lib/gateways/collections/collection_share_gateway.dart+++ b/mobile/apps/photos/lib/gateways/collections/collection_share_gateway.dart@@ -94,7 +94,7 @@ class CollectionShareGateway {Future<PublicURL> createShareUrl({required int collectionID,bool enableCollect = false,- bool enableJoin = true,+ bool enableJoin = false,bool enableComment = true,}) async {final response = await _enteDio.post(diff --git a/mobile/apps/photos/lib/services/collections_service.dart b/mobile/apps/photos/lib/services/collections_service.dartindex fd3759137b..a708f690e6 100644--- a/mobile/apps/photos/lib/services/collections_service.dart+++ b/mobile/apps/photos/lib/services/collections_service.dart@@ -1348,7 +1348,7 @@ class CollectionsService {Future<void> createShareUrl(Collection collection, {bool enableCollect = false,- bool enableJoin = true,+ bool enableJoin = false,}) async {try {final publicUrl = await collectionShareGateway.createShareUrl(diff --git a/web/apps/photos/src/components/Collections/CollectionShare.tsx b/web/apps/photos/src/components/Collections/CollectionShare.tsxindex 6b348e5c13..41e3c992eb 100644--- a/web/apps/photos/src/components/Collections/CollectionShare.tsx+++ b/web/apps/photos/src/components/Collections/CollectionShare.tsx@@ -1585,10 +1585,10 @@ const EnablePublicShareOptions: React.FC<EnablePublicShareOptionsProps> = ({void (async () => {try {- const publicURL = await createPublicURL(- collection.id,- attributes,- );+ const publicURL = await createPublicURL(collection.id, {+ enableJoin: false,+ ...attributes,+ });setPending("");setPublicURL(publicURL);onLinkCreated();