mirror of
https://github.com/thegeneralist01/archivr
synced 2026-10-09 12:55:00 +02:00
Previously, any WebPage capture with via_freedium=true was routed through the Freedium mirror regardless of the URL's host. This caused non-paywall sites like borretti.me to be fetched through Freedium, which is wrong — Freedium only knows how to handle a specific set of publications. Add is_freedium_supported_url() with a static allowlist of the 7 hosts Freedium explicitly supports per its homepage announcement: Medium, NYT, WaPo, Bloomberg, Reuters, Economist, Financial Times The gate matches on the bare domain or any subdomain (e.g. towardsdatascience.medium.com). Unparseable URLs fall through to a direct fetch. The existing freedium-mirror.cfd re-wrap guard is kept as a belt-and-suspenders check after the new allowlist test. Fixes: https://borretti.me/article/notes-on-managing-adhd archived via Freedium despite not being a Medium article. |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||