{"record":{"id":"820140c07aca1752","repo":"siyuan-note/siyuan","slug":"conf-language-204","errorCode":null,"errorMessage":"Conf.Language(204)","messagePattern":"Conf\\.Language\\(204\\)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"kernel/model/export.go","lineNumber":422,"sourceCode":"\t\treturn nil\n\t})\n\treturn\n}\n\nfunc Export2Liandi(id string) (err error) {\n\tif err = prepareExportBlockAssets(id, false); err != nil {\n\t\treturn\n\t}\n\terr = withExportReadLockByBlockID(id, func() error {\n\t\ttree, loadErr := LoadTreeByBlockID(id)\n\t\tif loadErr != nil {\n\t\t\tlogging.LogErrorf(\"load tree by block id [%s] failed: %s\", id, loadErr)\n\t\t\treturn loadErr\n\t\t}\n\n\t\tif IsUserGuide(tree.Box) {\n\t\t\t// Doc in the user guide no longer supports one-click sending to the community https://github.com/siyuan-note/siyuan/issues/8388\n\t\t\treturn errors.New(Conf.Language(204))\n\t\t}\n\n\t\tassets := getAssetsLinkDests(tree.Root, false)\n\t\tembedAssets := getQueryEmbedNodesAssetsLinkDests(tree.Root)\n\t\tassets = append(assets, embedAssets...)\n\t\tassets = gulu.Str.RemoveDuplicatedElem(assets)\n\t\t_, err = uploadAssets2Cloud(assets, bizTypeExport2Liandi, false)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\n\t\tmsgId := util.PushMsg(Conf.Language(182), 15000)\n\t\tdefer util.PushClearMsg(msgId)\n\n\t\t// 判断帖子是否已经存在，存在则使用更新接口\n\t\tconst liandiArticleIdAttrName = \"custom-liandi-articleid\"\n\t\tconst liandiArticleIdAttrNameOld = \"custom-liandi-articleId\" // 兼容旧属性名\n\t\tfoundArticle := false","sourceCodeStart":404,"sourceCodeEnd":440,"githubUrl":"https://github.com/siyuan-note/siyuan/blob/9f775e8a12daef8255556097396f9b2739078892/kernel/model/export.go#L404-L440","documentation":"Export2Liandi refuses to send documents that belong to the built-in user guide notebook. Guides are shipped documentation and are excluded from publishing to the Liandi community (issue #8388), so the kernel returns the localized message Conf.Language(204) instead of attempting the upload.","triggerScenarios":"Calling Export2Liandi (directly or through the 'send to Liandi' UI action) with a blockID whose tree's box satisfies IsUserGuide(tree.Box).","commonSituations":"Trying to publish a page from the bundled user guide notebook; scripts or tests that reuse a guide block ID as sample data.","solutions":["Copy the content into a regular (non-user-guide) notebook and send that document to Liandi instead.","Check IsUserGuide on the tree's box ID before invoking Export2Liandi and show an appropriate message.","Do not use the built-in user guide notebook for real publishing workflows."],"exampleFix":"// before\nExport2Liandi(guideDocBlockID)\n// after\nif !model.IsUserGuide(boxID) {\n    Export2Liandi(blockID)\n}","handlingStrategy":"validation","validationCode":"tree, _ := model.LoadTreeByBlockID(blockID)\nif tree != nil && model.IsUserGuide(tree.Box) {\n    return errors.New(\"cannot send user guide docs to Liandi\")\n}\nerr := model.Export2Liandi(blockID)","typeGuard":null,"tryCatchPattern":"if err != nil {\n    if strings.Contains(err.Error(), model.Conf.Language(204)) {\n        // hide/disable the send-to-Liandi action for guide docs\n    }\n    return err\n}","preventionTips":["Hide publish actions inside the user guide notebook UI","Use a real notebook for publishing workflows and tests"],"tags":["export","user-guide","liandi"],"backgroundTag":"unsupported-operation","analyzedSha":"9f775e8a12daef8255556097396f9b2739078892","analyzedAt":"2026-09-19T03:17:15.984Z","contentChangedAt":"2026-09-19T03:17:15.984Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}