An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Asset link element prompt shows more information https://github.com/siyuan-note/siyuan/issues/10714
Daniel433c0b6dde0e
diff --git a/kernel/api/asset.go b/kernel/api/asset.goindex ba8f82e21e..388a2fec05 100644--- a/kernel/api/asset.go+++ b/kernel/api/asset.go@@ -25,6 +25,7 @@ import ("github.com/88250/gulu""github.com/djherbis/times"+ "github.com/dustin/go-humanize""github.com/gin-gonic/gin""github.com/siyuan-note/filelock""github.com/siyuan-note/siyuan/kernel/model"@@ -66,9 +67,12 @@ func statAsset(c *gin.Context) {}ret.Data = map[string]interface{}{- "size": info.Size(),- "created": t.BirthTime().UnixMilli(),- "updated": t.ModTime().UnixMilli(),+ "size": info.Size(),+ "hSize": humanize.Bytes(uint64(info.Size())),+ "created": t.BirthTime().UnixMilli(),+ "hCreated": t.BirthTime().Format("2006-01-02 15:04:05"),+ "updated": t.ModTime().UnixMilli(),+ "hUpdated": t.ModTime().Format("2006-01-02 15:04:05"),}}