From bcf4fe6e5c60fb839e6c906967265d6d7f86faf2 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Sun, 11 Dec 2022 00:20:23 +0800 Subject: [PATCH] Show domain on first line, chop off "www" --- src/components/status.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/status.jsx b/src/components/status.jsx index 7824f778..8b94b5b9 100644 --- a/src/components/status.jsx +++ b/src/components/status.jsx @@ -181,7 +181,7 @@ function Card({ card }) { const hasText = title || providerName || authorName; if (hasText && image) { - const domain = new URL(url).hostname; + const domain = new URL(url).hostname.replace(/^www\./, ''); return (
+

{domain}

{providerName || authorName}

-

{domain}

);