From 3ad34ee5fbbb212f70f551b3a4d4987de17a44f5 Mon Sep 17 00:00:00 2001 From: Dylan Jeffers Date: Wed, 12 Aug 2026 13:39:22 -0700 Subject: [PATCH 1/4] fix(contest): render update messages with UserGeneratedTextV2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes two bugs reported Aug 12 (Michael Cullen) when posting contest winner announcements: - Spacing broken: plain has no white-space:pre-wrap, so newlines typed by the host collapse to a single space on render. - Links not clickable: renders raw strings; URLs are visible but not parsed into tags. UserGeneratedTextV2 applies white-space:pre-wrap and detects URLs (including external links such as stream/prize URLs) + @mentions, rendering them as clickable TextLinks. No internalLinksOnly restriction — contest host announcements routinely link to external platforms. --- .../contest-page/components/ContestCommentsTile.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/web/src/pages/contest-page/components/ContestCommentsTile.tsx b/packages/web/src/pages/contest-page/components/ContestCommentsTile.tsx index f41da6aabe7..2c02b937cdd 100644 --- a/packages/web/src/pages/contest-page/components/ContestCommentsTile.tsx +++ b/packages/web/src/pages/contest-page/components/ContestCommentsTile.tsx @@ -34,6 +34,7 @@ import { useQueryClient } from '@tanstack/react-query' import { ComposerInput } from 'components/composer-input/ComposerInput' import { UserLink } from 'components/link/UserLink' +import { UserGeneratedTextV2 } from 'components/user-generated-text/UserGeneratedTextV2' import { VideoEmbed } from 'components/video-embed/VideoEmbed' import { useProfilePicture } from 'hooks/useProfilePicture' import { useRequiresAccountCallback } from 'hooks/useRequiresAccount' @@ -637,9 +638,9 @@ const ContestCommentRow = ({ ) : null} - + {comment.message} - + {videoUrl ? ( {/* Updates only accept YouTube / Vimeo URLs (set via the @@ -867,9 +868,9 @@ const ContestCommentReplyRow = ({ ) : null} - + {reply.message} - + Date: Wed, 12 Aug 2026 13:39:24 -0700 Subject: [PATCH 2/4] fix(contest): use UserGeneratedTextV2 + VideoEmbed in ContestCommentsSection Same spacing/link fix as ContestCommentsTile applied to the legacy section component (used on mobile web / feed mode). Also replaces native ) : null} - + {comment.message} - + {videoUrl ? ( -