From 1b296d76c85d44745a6fee761a49142b661a16ee Mon Sep 17 00:00:00 2001 From: colorfulberry Date: Thu, 11 Jun 2020 17:42:27 +0800 Subject: [PATCH] feat; fixing the default public bug --- routers/repo/attachment.go | 1 + 1 file changed, 1 insertion(+) diff --git a/routers/repo/attachment.go b/routers/repo/attachment.go index 9ee167b0b..0d4b4b83e 100644 --- a/routers/repo/attachment.go +++ b/routers/repo/attachment.go @@ -261,6 +261,7 @@ func AddAttachment(ctx *context.Context) { _, err = models.InsertAttachment(&models.Attachment{ UUID: uuid, UploaderID: ctx.User.ID, + IsPrivate: true, Name: ctx.Query("file_name"), Size: ctx.QueryInt64("size"), DatasetID: ctx.QueryInt64("dataset_id"),