fix: source.unsplash.com/random was deprecated in 2024 (now 503s)#426
Open
kiluazen wants to merge 1 commit intoGrapesJS:masterfrom
Open
fix: source.unsplash.com/random was deprecated in 2024 (now 503s)#426kiluazen wants to merge 1 commit intoGrapesJS:masterfrom
kiluazen wants to merge 1 commit intoGrapesJS:masterfrom
Conversation
Author
|
Quick post-PR addendum (purely informational): I built a public scanner that highlights this same broken-URL pattern in any landing page — useful for verifying the fix lands cleanly, or for finding other places Pre-loaded scan example: https://tteg.kushalsm.com/scan?url= Source: https://github.com/kiluazen/tteg-landing/blob/main/scan.html (Cloudflare Pages Function does the fetch so it works for any HTTPS site). Not a dependency of this PR — just a tool you may find handy. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
src/blocks.tsreferences the deprecatedsource.unsplash.com/randomendpoint, which Unsplash retired in mid-2024 and which now returns HTTP 503 instead of an image.Why this is needed
source.unsplash.com/randomwas deprecated by Unsplash in mid-2024 and the endpoint now returns 503 errors. Browser screenshots typically render a broken image icon instead of the intended placeholder.You can verify in any browser:
What this PR changes
Replaces the six broken
source.unsplash.com/random/200x14NURLs in the MJML grid example block withpicsum.photosseeded URLs of the same dimensions, so the placeholder grid renders again.Replacement details
Picsum is a maintained random-image CDN (no auth), and a
seed/...prefix gives stable but distinct images per cell so the grid example keeps its visual variety. Image dimensions are unchanged.Background
I'm tracking deprecated image-CDN URLs across public repos as part of tteg, a tiny CLI/HTTP API I built to make it easy to drop real Unsplash photos into projects without registering an Unsplash app or managing API keys. tteg isn't a dependency of this PR — the fix above is dependency-free. But if you ever want to swap the static replacement for something topic-aware, the no-key HTTP API is at
https://tteg-api-53227342417.asia-south1.run.app/search?q=<query>&n=1(CORS-on, no auth).A 16k-files-across-885-repos summary of the deprecation is at
kiluazen/tteg/RESEARCH.md.