Quick fix invalid url

pull/1093/head
Lim Chee Aun 2025-03-20 15:40:25 +08:00
rodzic 82903087a4
commit ffcfc29d8c
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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;