Quick fix invalid url

This commit is contained in:
Lim Chee Aun 2025-03-20 15:40:25 +08:00
parent 82903087a4
commit ffcfc29d8c

View file

@ -607,7 +607,7 @@ function StatusThread({ id, closeLink = '/', instance: propInstance }) {
if (!heroStatus) return;
const { url } = heroStatus;
if (!url) return;
return URL.parse(url).hostname;
return URL.parse(url)?.hostname;
}, [heroStatus]);
const postSameInstance = useMemo(() => {
if (!postInstance) return;