Skip to content

armgit / ente

Public Imported from GitHub
0

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

Set enableComment to true by default for public links

ashilkn9407f3a4aa67
diff --git a/mobile/apps/photos/lib/models/api/collection/public_url.dart b/mobile/apps/photos/lib/models/api/collection/public_url.dart
index 8eb63b0745..1bfcca8e84 100644
--- a/mobile/apps/photos/lib/models/api/collection/public_url.dart
+++ b/mobile/apps/photos/lib/models/api/collection/public_url.dart
@@ -19,7 +19,7 @@ class PublicURL {
this.passwordEnabled = false,
this.enableCollect = false,
this.enableJoin = true,
- this.enableComment = false,
+ this.enableComment = true,
this.nonce,
this.opsLimit,
this.memLimit,
@@ -61,7 +61,7 @@ class PublicURL {
opsLimit: map['opsLimit'],
memLimit: map['memLimit'],
enableJoin: map['enableJoin'] ?? true,
- enableComment: map['enableComment'] ?? false,
+ enableComment: map['enableComment'] ?? true,
);
}
}
diff --git a/mobile/apps/photos/lib/services/collections_service.dart b/mobile/apps/photos/lib/services/collections_service.dart
index a9542c4583..03569a0ca9 100644
--- a/mobile/apps/photos/lib/services/collections_service.dart
+++ b/mobile/apps/photos/lib/services/collections_service.dart
@@ -1320,6 +1320,7 @@ class CollectionsService {
"collectionID": collection.id,
"enableCollect": enableCollect,
"enableJoin": true,
+ "enableComment": true,
},
);
collection.publicURLs.add(PublicURL.fromMap(response.data["result"]));