π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Minor fix
Neeraj Gupta1102a749ff81
diff --git a/server/ente/public_collection.go b/server/ente/public_collection.goindex d7756f702e..bf042022b9 100644--- a/server/ente/public_collection.go+++ b/server/ente/public_collection.go@@ -12,6 +12,7 @@ import (type CreatePublicAccessTokenRequest struct {CollectionID int64 `json:"collectionID" binding:"required"`EnableCollect bool `json:"enableCollect"`+ EnableComment bool `json:"enableComment"`// defaults to trueEnableJoin *bool `json:"enableJoin"`ValidTill int64 `json:"validTill"`@@ -28,6 +29,7 @@ type UpdatePublicAccessTokenRequest struct {OpsLimit *int64 `json:"opsLimit"`EnableDownload *bool `json:"enableDownload"`EnableCollect *bool `json:"enableCollect"`+ EnableComment *bool `json:"enableComment"`DisablePassword *bool `json:"disablePassword"`EnableJoin *bool `json:"enableJoin"`MinRole *CollectionParticipantRole `json:"minRole"`@@ -35,7 +37,7 @@ type UpdatePublicAccessTokenRequest struct {func (ut *UpdatePublicAccessTokenRequest) Validate() error {if ut.DeviceLimit == nil && ut.ValidTill == nil && ut.DisablePassword == nil &&- ut.Nonce == nil && ut.PassHash == nil && ut.EnableDownload == nil && ut.EnableCollect == nil && ut.EnableJoin == nil && ut.MinRole == nil {+ ut.Nonce == nil && ut.PassHash == nil && ut.EnableDownload == nil && ut.EnableCollect == nil && ut.EnableComment == nil && ut.EnableJoin == nil && ut.MinRole == nil {return NewBadRequestWithMessage("all parameters are missing")}@@ -86,6 +88,7 @@ type CollectionLinkRow struct {OpsLimit *int64EnableDownload boolEnableCollect bool+ EnableComment boolEnableJoin boolMinRole *CollectionParticipantRole}@@ -114,6 +117,7 @@ type PublicURL struct {EnableDownload bool `json:"enableDownload"`// Enable collect indicates whether folks can upload files in a publicly shared urlEnableCollect bool `json:"enableCollect"`+ EnableComment bool `json:"enableComment"`PasswordEnabled bool `json:"passwordEnabled"`// Nonce contains the nonce value for the password if the link is password protected.Nonce *string `json:"nonce,omitempty"`