Skip to content

blog: pin sidebar profile avatar locally (stop hotlinking GitHub)#233

Draft
Jesssullivan wants to merge 1 commit into
mainfrom
jess/pin-profile-avatar
Draft

blog: pin sidebar profile avatar locally (stop hotlinking GitHub)#233
Jesssullivan wants to merge 1 commit into
mainfrom
jess/pin-profile-avatar

Conversation

@Jesssullivan

Copy link
Copy Markdown
Owner

What

Vendors the current GitHub profile picture (460×460 JPEG, 38KB, as served by avatars.githubusercontent.com/u/37297218) into static/images/profile-avatar.jpg and points both ProfileSidebar imgs (compact 64px + desktop 250px) at it. Two-line component diff + one asset.

Why

ProfileSidebar has hotlinked https://github.com/Jesssullivan.png since #20 (February), so any change to the GitHub account picture instantly restyles prod — operator noticed the sidebar switch to the new yellowthroat avatar and ruled: deliberate change, pin it locally. This also removes a third-party request from every page bearing the sidebar and makes the flagship immune to future avatar drift, GitHub rate-limiting, and incidents (today's gxycch3076xk-style).

Verification

  • svelte-check --threshold error: 0 errors (after svelte-kit sync + prebuild in a fresh worktree)
  • Only two hotlink sites exist in the repo (verified by grep); both updated

Notes

  • Draft on purpose: a non-draft PR fires shadow-preview.yml, whose infra-dispatch step is currently failing (TIN-2902 lane breakage + a 401 observed during the GitHub incident) — that red would be pre-existing lane state, not this change. Flip to ready + merge whenever you're at the helm; merging deploys prod.
  • The bird is a Common Yellowthroat; if a footer/alt credit line is ever wanted for it, that's the credits.ts-style provenance flow, out of scope here.

ProfileSidebar hotlinked https://github.com/Jesssullivan.png since #20,
so any change to the GitHub account picture instantly restyles prod.
Vendor the current avatar (460x460 JPEG as served by GitHub) into
static/images/profile-avatar.jpg and point both the compact and desktop
sidebar imgs at it. Third-party request removed; future GitHub avatar
changes no longer propagate silently.
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.

1 participant