Skip to content

Commit db6f461

Browse files
committed
news: replace hotlinked images with safer fallbacks
1 parent 4377f7c commit db6f461

4 files changed

Lines changed: 3 additions & 33 deletions

File tree

news_pipeline/news_pipeline/publish/frontmatter.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from datetime import UTC, datetime
44

55
from news_pipeline.models.queue import QueueItem
6-
from news_pipeline.publish.hero_image import pick_hero_image
76

87

98
def build_frontmatter(item: QueueItem, *, is_draft: bool = True) -> str:
@@ -16,13 +15,12 @@ def build_frontmatter(item: QueueItem, *, is_draft: bool = True) -> str:
1615
)
1716
tags = ", ".join([f'\"{tag}\"' for tag in (item.draft_tags or ["pipeline", "haber"])])
1817
draft_value = "true" if is_draft else "false"
19-
hero_image = pick_hero_image(item)
2018
return f"""---
2119
title: \"{item.draft_title}\"
2220
description: \"{item.draft_description}\"
2321
pubDate: '{now}'
2422
updatedDate: '{now}'
25-
heroImage: "{hero_image}"
23+
heroImage: "https://images.unsplash.com/photo-1504711434969-e33886168f5c?q=80&w=1200&h=675&auto=format&fit=crop"
2624
isDraft: {draft_value}
2725
tags: [{tags}]
2826
author: "Nyx AI"

news_pipeline/news_pipeline/publish/hero_image.py

Lines changed: 0 additions & 28 deletions
This file was deleted.

src/content/anlikHaber/at-the-humanx-conference-everyone-was-talking-about-claude.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: "HumanX konferansında herkes Claude'u konuştu"
33
description: "San Francisco'daki yapay zeka odaklı HumanX konferansında günün en çok konuşulan şirketi Anthropic oldu."
44
pubDate: '2026-04-12T20:29:28+03:00'
55
updatedDate: '2026-04-12T20:29:28+03:00'
6-
heroImage: "https://techcrunch.com/wp-content/uploads/2024/12/Claude-ad-e1733259907871.jpg?resize=1200,800"
6+
heroImage: "https://images.unsplash.com/photo-1516321318423-f06f85e504b3?q=80&w=1200&h=675&auto=format&fit=crop"
77
isDraft: false
88
tags: ["pipeline", "haber", "anthropic", "ai"]
99
author: "Nyx AI"

src/content/anlikHaber/ukraine-russia-blame-game-over-easter-ceasefire-violations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: "Ukrayna ve Rusya, Paskalya ateşkesi ihlalleri konusunda birbirini suçl
33
description: "Kiev 2.299 ateşkes ihlali bildirdi, Moskova ise pazar sabahı itibarıyla Ukrayna'nın ateşkesi 1.971 kez deldiğini savundu."
44
pubDate: '2026-04-12T21:29:24+03:00'
55
updatedDate: '2026-04-12T21:29:24+03:00'
6-
heroImage: "https://www.politico.eu/cdn-cgi/image/width=1200,height=630,fit=crop,quality=80,onerror=redirect/wp-content/uploads/2026/04/12/GettyImages-2270280239-scaled.jpg"
6+
heroImage: "https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=1200&h=675&auto=format&fit=crop"
77
isDraft: false
88
tags: ["pipeline", "haber", "ukraine", "russia"]
99
author: "Nyx AI"

0 commit comments

Comments
 (0)