This commit is contained in:
2026-01-17 01:22:01 +01:00
parent c258e5c695
commit c12b32ed5e
103 changed files with 12912 additions and 214 deletions

View File

@@ -32,7 +32,13 @@ export default function VisualLinkPreview({ url, title, summary, image }: Visual
{summary}
</p>
<span className="text-xs text-text-secondary mt-2 opacity-70">
{new URL(url).hostname}
{(() => {
try {
return new URL(url).hostname;
} catch (e) {
return url;
}
})()}
</span>
</div>
</div>