Quick fix invalid url
This commit is contained in:
parent
82903087a4
commit
ffcfc29d8c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue