From 114aed603bfff6a887c40a5db6fcc7c2fc60cf3e Mon Sep 17 00:00:00 2001 From: 15972095207 <2484216370@qq.com> Date: Wed, 3 Jun 2026 20:46:01 +0800 Subject: [PATCH] fix: omit empty message field in wiki update to avoid 500 error --- shortcuts/wiki/wiki.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shortcuts/wiki/wiki.go b/shortcuts/wiki/wiki.go index 8d9cd84..ab49697 100644 --- a/shortcuts/wiki/wiki.go +++ b/shortcuts/wiki/wiki.go @@ -125,9 +125,11 @@ func Shortcuts() []*common.Shortcut { "projectId": projectID, "pageName": name, "title": name, - "message": ctx.Arg("message"), "content_base64": base64.StdEncoding.EncodeToString([]byte(content)), } + if msg := ctx.Arg("message"); msg != "" { + body["message"] = msg + } return callWikiAPI(ctx, "PUT", "/wiki/open/updateWiki", body, nil) }, },