Skip to content

armgit / ente

Public Imported from GitHub
0

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

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.dart
index 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.dart
index 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.tsx
index 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();