From 6435f33af9607ce319961b6cb788eb53acd22398 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Wed, 30 Nov 2022 16:57:21 +0100 Subject: [PATCH] fallback to link.url MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- app/soapbox/features/event/event-information.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/soapbox/features/event/event-information.tsx b/app/soapbox/features/event/event-information.tsx index b12469d9b..9068d2d5c 100644 --- a/app/soapbox/features/event/event-information.tsx +++ b/app/soapbox/features/event/event-information.tsx @@ -121,8 +121,8 @@ const EventInformation: React.FC = ({ params }) => { {status.event.links.map(link => ( - - {link.remote_url.replace(/^https?:\/\//, '')} + + {(link.remote_url || link.url).replace(/^https?:\/\//, '')} ))}