Commit d53beca9 authored by jan.koester's avatar jan.koester
Browse files

tes

parent c25e6361
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -417,6 +417,11 @@ void blogi::Blogi::api(libhttppp::HttpRequest& curreq, const int tid){
                            // For API-only publish: the rendered HTML is not provided here,
                            // the plugin should use an empty string or handle accordingly
                            std::string renderedHtml;
                            json_object *htmlObj = nullptr;
                            if (json_object_object_get_ex(single_request, "html", &htmlObj)) {
                                const char *hstr = json_object_get_string(htmlObj);
                                if (hstr) renderedHtml = hstr;
                            }
                            api->Publish(tid, renderedHtml, params, single_response);
                            found = true;
                            break;