From f8d57d9e75f16479c9e05407e0ff7a9d2aac0642 Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Wed, 7 Aug 2019 16:22:35 -0400 Subject: [PATCH] Return correct `public` state on collection creation (in returned JSON data) Ref T675 --- database.go | 1 + 1 file changed, 1 insertion(+) diff --git a/database.go b/database.go index ea562b3..0150a41 100644 --- a/database.go +++ b/database.go @@ -282,6 +282,7 @@ func (db *datastore) CreateCollection(cfg *config.Config, alias, title string, u Title: title, OwnerID: userID, PublicOwner: false, + Public: defaultVisibility(cfg) == CollPublic, } c.ID, err = res.LastInsertId()