fix: source.unsplash.com/random was deprecated in 2024 (now 503s) - #4031
Open
kiluazen wants to merge 1 commit into
Open
fix: source.unsplash.com/random was deprecated in 2024 (now 503s)#4031kiluazen wants to merge 1 commit into
kiluazen wants to merge 1 commit into
Conversation
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.
website/docs/component_usage/Image.mdxreferences the deprecatedsource.unsplash.com/*endpoint, which Unsplash retired in mid-2024 and which now returns HTTP 503 instead of an image.Why this is needed
source.unsplash.com/random(and related endpoints like/featured,/collection/<id>) was deprecated by Unsplash in mid-2024. These URLs now return HTTP 503 instead of an image, so browsers render a broken-image icon in place of the intended visual.Verify in any shell:
What this PR changes
Updates the
Imagecomponent docs example'sBASE_URIso the examples on the react-native-elements docs site actually render images instead of 503 icons when developers scroll the Image component page.Replacement details
picsum.photos/seed/rne-<sig>preserves the deterministic per-sig behaviour the original URL provided (each sig maps to the same image on reload, which matters for the storybook-style examples on this docs page). Docs-only change — no runtime library behaviour is affected.Background
I'm tracking the deprecated
source.unsplash.com/*endpoints across public repos as part of tteg, a tiny CLI/HTTP API I built so projects can drop in real Unsplash photos without registering an Unsplash app or managing API keys. tteg isn't introduced as a dependency by this PR — the diff is dependency-freepicsum.photos. If you want topic-matched real photos as a follow-up, the no-key HTTP API is athttps://tteg-api-53227342417.asia-south1.run.app/search?q=<query>&n=1(CORS-on, no auth).One extra artifact you may find handy: a public scanner at https://tteg.kushalsm.com/scan?url= that highlights this same broken-URL pattern in any landing page — useful for verifying the fix lands and for finding other places
source.unsplash.com/randomslipped in. Source: https://github.com/kiluazen/tteg-landing/blob/main/scan.html.Research note covering ~16,500 files across ~885 unique repos that still hotlink the deprecated endpoint: https://github.com/kiluazen/tteg/blob/research-note-autark/RESEARCH.md.