An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: `Share to community` asset URL is incorrect on LiuYun Fix https://github.com/siyuan-note/siyuan/issues/8758
Danield9c253d9e76b
diff --git a/kernel/model/export.go b/kernel/model/export.goindex a2c7d4153f..f050113afe 100644--- a/kernel/model/export.go+++ b/kernel/model/export.go@@ -112,7 +112,7 @@ func Export2Liandi(id string) (err error) {title := path.Base(tree.HPath)tags := tree.Root.IALAttr("tags")- content := exportMarkdownContent0(tree, "https://b3logfile.com/file/"+time.Now().Format("2006/01")+"/siyuan/"+Conf.User.UserId+"/", true,+ content := exportMarkdownContent0(tree, util.GetCloudForumAssetsServer()+time.Now().Format("2006/01")+"/siyuan/"+Conf.User.UserId+"/", true,4, 1, 0,"#", "#","", "",diff --git a/kernel/util/cloud.go b/kernel/util/cloud.goindex 9ebedb6099..eb01867f8a 100644--- a/kernel/util/cloud.go+++ b/kernel/util/cloud.go@@ -53,18 +53,27 @@ func GetCloudAccountServer() string {return northAmericaAccountServer}+func GetCloudForumAssetsServer() string {+ if 0 == CurrentCloudRegion {+ return chinaForumAssetsServer+ }+ return northAmericaForumAssetsServer+}+const (chinaServer = "https://siyuan-sync.b3logfile.com" // 中国大陆云端服务地址,阿里云负载均衡,用于接口,数据同步文件上传、下载会走七牛云 OSS ChinaSyncServerchinaWebSocketServer = "wss://siyuan-sync.b3logfile.com" // 中国大陆云端服务地址,阿里云负载均衡,用于接口,数据同步文件上传、下载会走七牛云 OSS ChinaSyncServerchinaSyncServer = "https://siyuan-data.b3logfile.com/" // 中国大陆云端数据同步服务地址,七牛云 OSS,用于数据同步文件上传、下载chinaCloudAssetsServer = "https://assets.b3logfile.com/siyuan/" // 中国大陆云端图床服务地址,用于导出预览模式下订阅会员渲染图床chinaAccountServer = "https://ld246.com" // 中国大陆链滴服务地址,用于账号登录、分享发布帖子+ chinaForumAssetsServer = "https://b3logfile.com/file/" // 中国大陆链滴图床服务地址,用于发布文章到社区northAmericaServer = "https://siyuan-cloud.liuyun.io" // 北美云端服务地址,CloudflarenorthAmericaWebSocketServer = "wss://siyuan-cloud.liuyun.io" // 北美云端服务地址,Cloudflare,用于接口,数据同步文件上传、下载会走七牛云 OSS ChinaSyncServernorthAmericaSyncServer = "https://siyuan-data.liuyun.io/" // 北美云端数据同步服务地址,七牛云 OSS,用于数据同步文件上传、下载northAmericaCloudAssetsServer = "https://assets.liuyun.io/siyuan/" // 北美云端图床服务地址,用于导出预览模式下订阅会员渲染图床northAmericaAccountServer = "https://liuyun.io" // 流云服务地址,用于账号登录、分享发布帖子+ northAmericaForumAssetsServer = "https://assets.liuyun.io/file/" // 北美云端图床服务地址,用于发布文章到社区BazaarStatServer = "http://bazaar.b3logfile.com" // 集市包统计服务地址,直接对接 Bucket 没有 CDNBazaarOSSServer = "https://oss.b3logfile.com" // 云端对象存储地址,七牛云,仅用于读取集市包,全球 CDN