Loading src/blogi.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -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; Loading Loading
src/blogi.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -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; Loading