Three changes per Daniel (2026-09-15): 1. VERIFIED PUBLISHERS ONLY — lib/sources.js gains VERIFIED_HOSTS (established PH newsrooms + state wire + international) and publisherVerified(url); lib/crawl.js now drops any story whose article URL host is not on the allowlist BEFORE the relevance gate (skippedUnverified counter surfaces in the crawl result + cron log). Tabloids/blogs/radio (bomboradyo, unboxph, bnc.bilyonaryo, dzrh, thechronicle, …) can no longer reach the desk. Quiet-day fallback wires expanded to Inquirer/Rappler/GMA/ABS-CBN/Interaksyon/Manila Bulletin (all verified). 2. IN PICTURES — a new prominent full-width band on the front page: 7 real public-domain photos of Sen. BAM (official Senate/Facebook pages via Wikimedia Commons), each credited to its source with a link out to the Commons file page. lib/photos.js holds the curated, URL-verified set. 3. BOARD AS ITS OWN AREA — the 'Thank You, Senator BAM' community board is now a distinct gold-edged full-width band (front page + its own view), clearly separate from the news desks. The nav 'Thank You Board' button is gold (not a category tab) and jumps to the band. Tests: publisher-gate unit checks (22/22), ui-check.mjs updated to verify the In Pictures band (>=5 credited photos) + front-page board band posting; e2e + board suites still green.
76 lines
3.9 KiB
JavaScript
76 lines
3.9 KiB
JavaScript
// BidaAngMamamayan — curated public photos of Senator Bam Aquino.
|
|
//
|
|
// Every image is REAL and VERIFIED: fetched + license-checked via the
|
|
// Wikimedia Commons API, and each URL confirmed to load as an image
|
|
// (2006-09-15). Sources are the senator's official Senate / Facebook pages
|
|
// (and one allied senator's page), mirrored on Wikimedia Commons, all
|
|
// public domain. The site credits the original source on each card and
|
|
// links out to the Commons file page — Daniel asked that we cite where
|
|
// each photo came from.
|
|
//
|
|
// URL NOTE: we use the ORIGINALS on upload.wikimedia.org (not the
|
|
// thumb.wikimedia.org scaled copies). The thumb host returns 502 to
|
|
// datacenter egress under load; the originals are small (<320 KB each,
|
|
// the portrait PNG is 1.6 MB) and load reliably. Do NOT scrape random
|
|
// image hosts — only Commons-hosted, credited, public-domain photos.
|
|
|
|
const CDN = "https://commons.wikimedia.org/wiki/";
|
|
|
|
// url = verified image. caption/source/credit = the attribution shown on
|
|
// the card. commons = the File: page (the "view source" link).
|
|
export const PHOTOS = [
|
|
{
|
|
url: "https://upload.wikimedia.org/wikipedia/commons/4/4a/Bam_Aquino_2025_%28Cropped%29.png",
|
|
caption: "The 2025 Senate portrait",
|
|
source: "Senator Bam Aquino's official page",
|
|
credit: "Public domain, via Wikimedia Commons",
|
|
commons: "File:Bam_Aquino_2025_(Cropped).png",
|
|
},
|
|
{
|
|
url: "https://upload.wikimedia.org/wikipedia/commons/7/71/Bam_Aquino_and_Pope_Francis.jpg",
|
|
caption: "Meets Pope Francis at St. Peter's Square, Vatican",
|
|
source: "Senator Bam Aquino's official Facebook page",
|
|
credit: "Public domain, via Wikimedia Commons",
|
|
commons: "File:Bam_Aquino_and_Pope_Francis.jpg",
|
|
},
|
|
{
|
|
url: "https://upload.wikimedia.org/wikipedia/commons/5/5c/Senator_Bam_Aquino_and_Education_Secretary_Sonny_Angara.jpg",
|
|
caption: "With DepEd Sec. Sonny Angara on the classroom / free-college push",
|
|
source: "Senator Bam Aquino's official Facebook page",
|
|
credit: "Public domain, via Wikimedia Commons",
|
|
commons: "File:Senator_Bam_Aquino_and_Education_Secretary_Sonny_Angara.jpg",
|
|
},
|
|
{
|
|
url: "https://upload.wikimedia.org/wikipedia/commons/4/4e/Senator_Bam_Aquino_with_Bini_%2801%29.jpg",
|
|
caption: "Nation's girl group BINI visits the Philippine Senate",
|
|
source: "Senator Bam Aquino's official Facebook page",
|
|
credit: "Public domain, via Wikimedia Commons",
|
|
commons: "File:Senator_Bam_Aquino_with_Bini_(01).jpg",
|
|
},
|
|
{
|
|
url: "https://upload.wikimedia.org/wikipedia/commons/1/12/Bam_Aquino%2C_Brent_Manalo_and_Mika_Salamanca_in_2025.jpg",
|
|
caption: "With PBB: Celebrity Collab winners Brent Manalo & Mika Salamanca",
|
|
source: "Senator Bam Aquino's official Facebook page",
|
|
credit: "Public domain, via Wikimedia Commons",
|
|
commons: "File:Bam_Aquino,_Brent_Manalo_and_Mika_Salamanca_in_2025.jpg",
|
|
},
|
|
{
|
|
url: "https://upload.wikimedia.org/wikipedia/commons/f/f5/Risa_Hontiveros%2C_Bam_Aquino%2C_and_Kiko_Pangilinan_in_2025.jpg",
|
|
caption: "At a 2025 campaign event with Sen. Risa Hontiveros & Sen. Kiko Pangilinan",
|
|
source: "Senator Risa Hontiveros's official Facebook page",
|
|
credit: "Public domain, via Wikimedia Commons",
|
|
commons: "File:Risa_Hontiveros,_Bam_Aquino,_and_Kiko_Pangilinan_in_2025.jpg",
|
|
},
|
|
{
|
|
url: "https://upload.wikimedia.org/wikipedia/commons/6/60/Senator_Bam_Aquino_at_the_Ninoy_Aquino_International_Airport_Terminal_1_to_commemorate_the_42nd_anniversary_of_the_assassination_of_Ninoy_Aquino_%2801%29.jpg",
|
|
caption: "NAIA Terminal 1 — 42nd anniversary of Ninoy Aquino's assassination",
|
|
source: "Senator Bam Aquino's official Facebook page",
|
|
credit: "Public domain, via Wikimedia Commons",
|
|
commons: "File:Senator_Bam_Aquino_at_the_Ninoy_Aquino_International_Airport_Terminal_1_to_commemorate_the_42nd_anniversary_of_the_assassination_of_Ninoy_Aquino_(01).jpg",
|
|
},
|
|
];
|
|
|
|
export function commonsUrl(file) {
|
|
return CDN + encodeURIComponent(file).replace(/%20/g, "_");
|
|
}
|