Нашёл ещё один вариант ссылки на новости Atom

This commit is contained in:
Иван Кузьменко 2025-09-23 01:34:02 +03:00 committed by Иван Кузьменко
parent 06d93264a0
commit 673617690d

View file

@ -45,7 +45,7 @@ function getIconFromUrl(url: URL): string | undefined {
const href = url.href; const href = url.href;
if (href.startsWith('mailto:')) if (href.startsWith('mailto:'))
return 'email'; return 'email';
if (href.endsWith('/rss.xml') || href.endsWith('/atom.rss')) if (href.endsWith('/rss.xml') || href.endsWith('/atom.rss') || href.endsWith('.atom'))
return 'rss'; return 'rss';
const hostname = url.hostname; const hostname = url.hostname;