From 4d45f6870e201d39a7b3b1cd54cd0538de2925d5 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Wed, 22 Apr 2026 20:53:21 +0200 Subject: [PATCH] Render clickable links and timestamps in comment text Comments now use DescriptionText.attributed so URLs become tappable and route through the same in-app pipeline as description links, and timestamp strings seek the player. --- Yattee/Views/Components/CommentView.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Yattee/Views/Components/CommentView.swift b/Yattee/Views/Components/CommentView.swift index 4ea1f10b..a82d3556 100644 --- a/Yattee/Views/Components/CommentView.swift +++ b/Yattee/Views/Components/CommentView.swift @@ -43,13 +43,14 @@ struct CommentView: View { // Author name and badges authorInfo - // Comment content - Text(comment.content) + // Comment content — render with clickable URLs and timestamps + Text(DescriptionText.attributed(comment.content, linkColor: accentColor)) .font(.subheadline) .foregroundStyle(.primary) .fixedSize(horizontal: false, vertical: true) #if !os(tvOS) .textSelection(.enabled) + .handleTimestampLinks(using: appEnvironment?.playerService) #endif // Metadata row