[server] Make new links joinable by default
This commit is contained in:
@@ -12,7 +12,7 @@ import (
|
||||
type CreatePublicAccessTokenRequest struct {
|
||||
CollectionID int64 `json:"collectionID" binding:"required"`
|
||||
EnableCollect bool `json:"enableCollect"`
|
||||
// defaults to false
|
||||
// defaults to true
|
||||
EnableJoin *bool `json:"enableJoin"`
|
||||
ValidTill int64 `json:"validTill"`
|
||||
DeviceLimit int `json:"deviceLimit"`
|
||||
|
||||
@@ -38,7 +38,7 @@ func (pcr *PublicCollectionRepository) GetAlbumUrl(token string) string {
|
||||
func (pcr *PublicCollectionRepository) Insert(ctx context.Context,
|
||||
cID int64, token string, validTill int64, deviceLimit int, enableCollect bool, enableJoin *bool) error {
|
||||
// default value for enableJoin is true
|
||||
join := false
|
||||
join := true
|
||||
if enableJoin != nil {
|
||||
join = *enableJoin
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user