From eb8ad439dce1e0c82c16fd974e105d9f44524701 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Wed, 1 Jan 2025 11:46:10 +0800 Subject: [PATCH] :art: Just list the S3 bucket configured https://github.com/siyuan-note/siyuan/issues/13682 --- cloud/s3.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cloud/s3.go b/cloud/s3.go index 7f3dc4f..e3a7aea 100644 --- a/cloud/s3.go +++ b/cloud/s3.go @@ -426,6 +426,10 @@ func (s3 *S3) listRepos() (ret []*Repo, err error) { ret = []*Repo{} for _, bucket := range output.Buckets { + if *bucket.Name != s3.S3.Bucket { + continue + } + ret = append(ret, &Repo{ Name: *bucket.Name, Size: 0,