From f55845f9efa01250f7e5f07c8a854e198fcef6f8 Mon Sep 17 00:00:00 2001 From: level09 Date: Sun, 7 Jun 2026 17:42:01 +0200 Subject: [PATCH] fix(export): stop leaking internal description in public archive export The public archive export emitted both the internal description and the SJAC-authored public_description. Internal notes are not meant for public consumption, so export only public_description. --- enferno/commands.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/enferno/commands.py b/enferno/commands.py index 381dd623..ca866ab8 100644 --- a/enferno/commands.py +++ b/enferno/commands.py @@ -803,8 +803,9 @@ def status() -> None: def serialize_bulletin(bulletin): """Serialize a bulletin for the public archive export. - Includes only public-facing fields. Strips workflow, assignment, - review, and internal metadata. + Includes only public-facing fields. The internal ``description`` is + never exported; only the SJAC-authored ``public_description`` goes out. + Strips workflow, assignment, review, and internal metadata. """ labels = [ {"id": l.id, "title": l.title, "title_ar": l.title_ar, "verified": l.verified} @@ -911,7 +912,6 @@ def serialize_bulletin(bulletin): "id": bulletin.id, "title": bulletin.title, "title_ar": bulletin.title_ar, - "description": bulletin.description, "public_description": bulletin.public_description, "source_link": bulletin.source_link, "publish_date": DateHelper.serialize_datetime(bulletin.publish_date),