Use real article authors (remove Staff Reporter): removed mock staticArticles + changed fallback to Broadcast Beat

This commit is contained in:
migration-tooling
2026-05-16 00:54:53 +00:00
parent 3722a34fab
commit 4c0ba55743
8 changed files with 12 additions and 194 deletions

View File

@@ -78,7 +78,7 @@ async function fetchArticles(refs: ArticleRef[]): Promise<UnifiedArticle[]> {
excerpt: r.excerpt || "",
image: null,
date: r.published_at || r.created_at,
author: Array.isArray(r.persona) ? r.persona[0]?.name || "Staff Reporter" : r.persona?.name || "Staff Reporter",
author: Array.isArray(r.persona) ? r.persona[0]?.name || "Broadcast Beat" : r.persona?.name || "Broadcast Beat",
source_table: "ai_rewritten",
});
}
@@ -96,7 +96,7 @@ async function fetchArticles(refs: ArticleRef[]): Promise<UnifiedArticle[]> {
excerpt: r.excerpt || "",
image: r.featured_image,
date: r.wp_published_at,
author: r.author_name || "Staff Reporter",
author: r.author_name || "Broadcast Beat",
source_table: "wp_imported",
});
}