Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

fix(chat): enable tld validation in autolinking and add online to accepted tlds

Gabe Kangas5354d46fc6f1
diff --git a/web/components/chat/ChatUserMessage/ChatUserMessage.tsx b/web/components/chat/ChatUserMessage/ChatUserMessage.tsx
index 4943b52684..0fe581201c 100644
--- a/web/components/chat/ChatUserMessage/ChatUserMessage.tsx
+++ b/web/components/chat/ChatUserMessage/ChatUserMessage.tsx
@@ -110,7 +110,7 @@ export const ChatUserMessage: FC<ChatUserMessageProps> = ({
className={styles.message}
content={body}
matchers={[
- new UrlMatcher('url', { validateTLD: false }),
+ new UrlMatcher('url', { customTLDs: ['online'] }),
new ChatMessageHighlightMatcher('highlight', { highlightString }),
]}
/>