Loading debian/changelog +11 −0 Changes for debian/changelog: 11 added lines, 0 removed lines. Original line number Diff line number Diff line blogi (20260707+2) unstable; urgency=medium * staticpage: stop letting an empty llms_txt on republish wipe out a previously published value — the +1 change below made the editor always send llms_txt, but the server treated "field present" as "overwrite unconditionally", so any publish where text extraction produced nothing (e.g. a stale in-memory document) silently cleared a good llms.txt live; now only non-empty values overwrite -- Jan Koester <jan.koester@tuxist.de> Tue, 07 Jul 2026 15:15:00 +0200 blogi (20260707+1) unstable; urgency=medium * blogi-editor: always send llms_txt on publish, even when empty, so a Loading plugins/staticpage/static.cpp +5 −1 Changes for plugins/staticpage/static.cpp: 5 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -801,7 +801,11 @@ void blogi::StaticPage::Publish(const int tid, const std::string &html, json_obj sql.clear(); sql << "UPDATE static_content SET text='" << dbpp::SQL::escaped(sbuf, html.c_str()) << "', meta='" << dbpp::SQL::escaped(sbuf, meta.c_str()) << "'"; if (hasLlmsTxt) // Only overwrite when non-empty: an empty llms_txt on a republish usually // means the editor's text extraction found nothing for this publish (e.g. // a stale/blank in-memory document), not a deliberate clear — don't let // that silently wipe a previously good value. if (hasLlmsTxt && !llmsTxt.empty()) sql << ", llms_txt='" << dbpp::SQL::escaped(sbuf, llmsTxt.c_str()) << "'"; sql << " WHERE id='" << pageId.c_str() << "';"; Args->database[tid]->exec(sql, res); Loading Loading
debian/changelog +11 −0 Changes for debian/changelog: 11 added lines, 0 removed lines. Original line number Diff line number Diff line blogi (20260707+2) unstable; urgency=medium * staticpage: stop letting an empty llms_txt on republish wipe out a previously published value — the +1 change below made the editor always send llms_txt, but the server treated "field present" as "overwrite unconditionally", so any publish where text extraction produced nothing (e.g. a stale in-memory document) silently cleared a good llms.txt live; now only non-empty values overwrite -- Jan Koester <jan.koester@tuxist.de> Tue, 07 Jul 2026 15:15:00 +0200 blogi (20260707+1) unstable; urgency=medium * blogi-editor: always send llms_txt on publish, even when empty, so a Loading
plugins/staticpage/static.cpp +5 −1 Changes for plugins/staticpage/static.cpp: 5 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -801,7 +801,11 @@ void blogi::StaticPage::Publish(const int tid, const std::string &html, json_obj sql.clear(); sql << "UPDATE static_content SET text='" << dbpp::SQL::escaped(sbuf, html.c_str()) << "', meta='" << dbpp::SQL::escaped(sbuf, meta.c_str()) << "'"; if (hasLlmsTxt) // Only overwrite when non-empty: an empty llms_txt on a republish usually // means the editor's text extraction found nothing for this publish (e.g. // a stale/blank in-memory document), not a deliberate clear — don't let // that silently wipe a previously good value. if (hasLlmsTxt && !llmsTxt.empty()) sql << ", llms_txt='" << dbpp::SQL::escaped(sbuf, llmsTxt.c_str()) << "'"; sql << " WHERE id='" << pageId.c_str() << "';"; Args->database[tid]->exec(sql, res); Loading