José AlvesandPaperclip 9b6fbe027c
Tests / bridge tests (push) Successful in 54s
Tests / writer-pipeline tests (push) Successful in 57s
Tests / frontend lib tests (push) Successful in 1m0s
fix(writer-pipeline): allow revista_imprensa drafts without featured image
For revista_imprensa items, the synthetic lead URLs (e.g.
/revista-imprensa/DD-MM-YYYY/N) are not real article pages and often
return 404. The publisher homepage may also lack og:image (record.pt
has empty og:image/twitter:image content attributes). Previously this
caused a mandatory featured image error loop.

Changes:
- resolveFeaturedImageForDraft now returns null instead of throwing
  for revista_imprensa items when no image is found from any source
- Added featuredImageFromPageImgs fallback that scrapes <img> tags
  from the publisher homepage when og:image is empty/missing, filtering
  out icons, SVGs, tracking pixels, and small images
- createDraftFromAggregatedItem handles null featured image gracefully,
  creating drafts without featured_media when unavailable

BIT-26192

Co-Authored-By: Paperclip <[email protected]>
2026-07-06 06:21:12 +00:00

news-platform

Scalable multi-domain sports news platform — Astro 5 SSR frontend, Fastify bridge, headless WordPress.

Structure

news-platform/
  frontend/         # Astro 5 SSR frontend application
  bridge/           # Fastify bridge (WordPress REST API cache + normalizer)
  writer-pipeline/  # RSS aggregator store, metrics, optional WP drafts (andebol.net)
  wordpress/        # WordPress config, themes, plugins
  config/domains/   # Per-domain configuration files
  docs/             # Architecture and runbooks
  deploy/           # LXC provisioning and deploy scripts

Quick Start

# 1. Start WordPress + MySQL
cd wordpress && docker compose up -d

# 2. Start bridge
cd bridge && npm install && npm run dev

# 3. Start frontend
cd frontend && npm install && npm run dev

Open: http://localhost:4321

Documentation

Core

Aggregator & Writer Pipeline

Internationalisation

  • Paperclip project: News Platform
  • Parent issue: BIT-345
  • Gitea remote: https://git.bitreport.pt/BitReport.pt/news-platform.git
S
Description
Scalable multi-domain sports news platform (frontend + WP bridge + SEO + LXC deploy)
Readme
4.6 MiB
0 Stars 32 Watchers 0 Forks
Languages
TypeScript 51.2%
Astro 38.9%
Shell 6.4%
CSS 2.2%
JavaScript 1.3%