Implement professional smart formatting with toggle logic and whitespace preservation
This commit is contained in:
@@ -250,8 +250,9 @@ func (h *ContentHandler) CreateContent(w http.ResponseWriter, r *http.Request) {
|
||||
if siteID == "" {
|
||||
siteID = req.SiteID // fallback to request body
|
||||
}
|
||||
if siteID == "" {
|
||||
siteID = "default" // final fallback
|
||||
if siteID == "" || siteID == "__MISSING_SITE_ID__" {
|
||||
http.Error(w, "site_id parameter is required and must be configured", http.StatusBadRequest)
|
||||
return
|
||||
}
|
||||
|
||||
// Generate content ID using the unified engine
|
||||
|
||||
Reference in New Issue
Block a user