From e553283df6fac8eff89994dacc3e24c74d26db5b Mon Sep 17 00:00:00 2001 From: nstarikov Date: Mon, 10 Aug 2026 11:52:18 +0300 Subject: [PATCH] fix: allow manual article publishing --- dzen-assistant/app/routes.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/dzen-assistant/app/routes.py b/dzen-assistant/app/routes.py index 3a822f5..0d01cf9 100644 --- a/dzen-assistant/app/routes.py +++ b/dzen-assistant/app/routes.py @@ -806,10 +806,6 @@ def publish_article( article = session.get(Article, article_id) if not article: raise HTTPException(status_code=404, detail="Article not found") - try: - validate_article_content(article.title, article.lead, article.body_html) - except RuntimeError as exc: - raise HTTPException(status_code=422, detail=str(exc)) from exc published_at = payload.publishedAt if payload and payload.publishedAt else datetime.now(timezone.utc) if published_at.tzinfo is None: published_at = published_at.replace(tzinfo=timezone.utc)