Skip to content

Serve the Eight Archived Posts' Hotlinked Images Locally - #530

Merged
ptr727 merged 2 commits into
developfrom
restore-hotlinked-images
Oct 25, 2026
Merged

ptr727 merged 2 commits into
developfrom
restore-hotlinked-images

Conversation

@ptr727

@ptr727 ptr727 commented Oct 25, 2026

Copy link
Copy Markdown
Owner

Summary

The eight archived posts in #513 embedded 95 images from hosts that no longer serve them. The seven 2009 and 2010 posts were written in Google Docs and published to Blogger, and the source documents in the maintainer's Drive still hold every embedded image. This restores all 95 under each post's own media, so no post loads an image from another host.

  • 94 images from the source documents. Each Doc's HTML export was paired with its post by order of appearance. The pairing was checked against the text just before each image, and it agrees at every slot. Every image, its wrapping link, and the one plain-text link in the NEC post now point at the local copy, static/media/<YYYY>/<MM>/<post-prefix>-NN.<ext>, per CONTENT.md "Media".
  • The Elco ECF41527W image on the MR16 retrofit post is the manufacturer's current product image of the same insert. The original URL answers 404.
  • Metadata. scripts/normalize-media.py stripped camera Exif and text chunks from eleven files. It drops segments only, so no image was re-encoded.
  • The CSP browser check's allow list is now empty. Nothing the site loads is blocked any longer, so both entries went, and deploy/README.md no longer describes the blocked images.

Closes #513

Verification

Run on server-2 in a worktree holding this branch's content:

  • checks/check-media-metadata.py: 1169 carried files, none it cannot vouch for. check-media-redactions.py, check-text-pii.py and check-env-docs.py pass.
  • deploy/make-release.sh against the local staging mirror. The URL contract passes, all 1157 local asset references resolve, and the orphan count holds at its baseline of 99, so every new file is linked. The CSP script gate passes.
  • checks/check-live-urls.sh: PASS - 1296 URLs honored.
  • checks/check-csp-browser.py with the empty allow list: PASS - 328 pages loaded with no violation the allow list lacks.
  • In Chrome on staging, all 41 images on the DroboPro/QNAP post load from the site itself.
  • The local strict review read 74 of the restored images beside their post text. Every image sits in the slot its text describes. Its one finding, a stale sentence in deploy/README.md, is fixed in 8f53728.

Pre-existing findings, not filed

  • content/posts/2015/08/02/mr16-12v-halogen-to-led-retrofit.md:303, pre-existing. The text names the ECF41540W (4000K) kitchen inserts, while the figure shows the ECF41527W. The dead hotlink named the same part, so this change keeps the mismatch rather than introducing it.

Related

#529 tracks a build gate that fails on any resource served from another origin. That gap is why these images went unnoticed. The issue also records the decision to self-host Google Fonts on both sites, in a pull request of its own.

🤖 Generated with Claude Code

ptr727 and others added 2 commits October 25, 2026 12:50
The eight posts in #513 embedded 95 images from hosts that no longer
serve them. The seven 2009 and 2010 posts were written in Google Docs
and published to Blogger, and the source documents still hold every
embedded image, so this restores them under each post's own media.

- Restore the 94 images from the source documents, matched to each
  post's references in order and checked against the text around each
  one, and point every image and its wrapping link at the local copy.
- Host the Elco ECF41527W product image on the MR16 retrofit post,
  taken from the manufacturer's current product page, since the
  original URL answers 404.
- Strip the camera and text metadata from eleven files with the
  normalizer, which drops segments and re-encodes nothing.
- Empty the CSP browser check's allow list, since the site no longer
  loads anything the policy blocks.

Closes #513

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The blog policy's description still said img-src 'self' blocks the
hotlinked images a few archived posts reference. None remains, so the
sentence described a block that no longer happens.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI lite review requested due to automatic review settings October 25, 2026 19:58
@ptr727

ptr727 commented Oct 25, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head 8f5372824a92224439ba7919e4ee9cc794205441, the content this pull request carries at that commit against develop, and it recorded 0 findings.

@coderabbitai

coderabbitai Bot commented Oct 25, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 94f72009-68a1-4258-82f3-7b5451600902
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Oct 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (develop@b305a6e). Learn more about missing BASE report.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop     #530   +/-   ##
==========================================
  Coverage           ?   52.39%           
==========================================
  Files              ?       12           
  Lines              ?     3336           
  Branches           ?        0           
==========================================
  Hits               ?     1748           
  Misses             ?     1588           
  Partials           ?        0           
Flag Coverage Δ
python-3.13 52.39% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Descriptive alt text is missing from the restored images, and the CSP documentation still needs its image-source claim scoped correctly.

8 open issues
What changed in this PR

This pull request restores 95 broken image references across eight archived posts by serving the images locally, removes obsolete CSP browser-check exceptions, and updates deployment documentation.

Changes:

  • Replaces 94 Google Docs image references and one Elco product hotlink with local media paths.
  • Adds normalized local image assets while preserving wrappers, titles, and the NEC post’s plain-text link.
  • Removes the obsolete CSP allowlist entries and updates its documentation.
File Reviewed change Findings
deploy/​README.md Updates documentation for the empty CSP browser allowlist. [P2] nit (1 vote): Scope the image-source claim to the blog or mention the family policy’s data: exception.
content/​posts/​2015/​08/​02/​mr16-12v-halogen-to-led-retrofit.md Localizes the Elco product image. [P1] moderate (2 votes): Add descriptive alt text to the restored image.
content/​posts/​2010/​05/​14/​zotac-zboxhd-id11-first-impressions.md Localizes 13 archived images. [P1] moderate (3 votes): Add descriptive alt text to the restored images.
content/​posts/​2010/​01/​30/​nec-multisync-lcd2490wuxi2-and-lcd2690wuxi2.md Localizes 11 images and the plain-text image link. [P1] moderate (2 votes): Add descriptive alt text to the restored images.
content/​posts/​2010/​01/​30/​data-robotics-drobopro-vs-qnap-ts-859-pro.md Localizes 41 archived images. [P1] moderate (2 votes): Add descriptive alt text to the restored images.
content/​posts/​2010/​01/​03/​intel-dp45sg-and-lian-li-pc-c33b-htpc.md Localizes 10 archived images. [P1] moderate (2 votes): Add descriptive alt text to the restored images.
content/​posts/​2009/​10/​11/​hitachi-a7k2000-and-seagate-barracude.md Localizes eight archived images. [P1] moderate (2 votes): Add descriptive alt text to the restored images.
content/​posts/​2009/​09/​21/​western-digital-re4-gp-2tb-drive.md Localizes six archived images. [P1] moderate (2 votes): Add descriptive alt text to the restored images.
content/​posts/​2009/​06/​14/​dell-2408wfp-and-spyder-3-elite.md Localizes five archived images. [P1] moderate (2 votes): Add descriptive alt text to the restored images.
checks/​csp-browser-allow.txt Removes the two obsolete external-image exceptions. No findings.

Review effort: Lite

@ptr727
ptr727 merged commit bb8536d into develop Oct 25, 2026
13 checks passed
@ptr727
ptr727 deleted the restore-hotlinked-images branch October 25, 2026 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants