🧑‍💻 Add field disabledInPublish to the marketplace package metadata to indicate whether it is disabled in the publishing service https://github.com/siyuan-note/siyuan/issues/11730

This commit is contained in:
Daniel 2025-09-04 10:29:58 +08:00
parent 9410a70a2b
commit 6ff4439be3
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
4 changed files with 26 additions and 22 deletions

View file

@ -35,9 +35,9 @@ func loadPetals(c *gin.Context) {
}
frontend := arg["frontend"].(string)
isPublish := model.IsReadOnlyRole(model.GetGinContextRole(c))
petals := model.LoadPetals(frontend)
ret.Data = petals
ret.Data = model.LoadPetals(frontend, isPublish)
}
func setPetalEnabled(c *gin.Context) {