diff --git a/src/components/status.jsx b/src/components/status.jsx index cafa0b8e..af1c9ae6 100644 --- a/src/components/status.jsx +++ b/src/components/status.jsx @@ -1565,6 +1565,7 @@ function _unfurlMastodonLink(instance, url) { } function nicePostURL(url) { + if (!url) return; const urlObj = new URL(url); const { host, pathname } = urlObj; const path = pathname.replace(/\/$/, '');