imnyang/cinny
Watch
1
0
Fork
You've already forked cinny
0

Fix crash with bad location uri (#2746)

fix crash with bad location uri
This commit is contained in:
Ajay Bura 2026-03-09 18:17:15 +11:00 • committed by GitHub
commit 2eb5a9a616
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -389,6 +389,8 @@ export function MLocation({ content }: MLocationProps) {
const geoUri = content.geo_uri;
if (typeof geoUri !== 'string') return <BrokenContent />;
const location = parseGeoUri(geoUri);
if (!location) return <BrokenContent />;
return (
<Box direction="Column" alignItems="Start" gap="100">
<Text size="T400">{geoUri}</Text>