From a54af07ec763051744a14035283f06234d80c08a Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Sun, 19 Apr 2020 20:54:11 -0500 Subject: [PATCH] Make the retweet timestamp a link back to the original status. --- Frameworks/Account/FeedProvider/Twitter/TwitterStatus.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Frameworks/Account/FeedProvider/Twitter/TwitterStatus.swift b/Frameworks/Account/FeedProvider/Twitter/TwitterStatus.swift index cb9c2886c..9fb9ad047 100644 --- a/Frameworks/Account/FeedProvider/Twitter/TwitterStatus.swift +++ b/Frameworks/Account/FeedProvider/Twitter/TwitterStatus.swift @@ -105,11 +105,13 @@ private extension TwitterStatus { func renderAsTweetHTML(_ status: TwitterStatus, topLevel: Bool) -> String { var html = "
\(status.displayHTML ?? "")
" - if !topLevel, let createdAt = status.createdAt { + if !topLevel, let createdAt = status.createdAt, let url = status.url { let dateFormatter = DateFormatter() dateFormatter.dateStyle = .medium dateFormatter.timeStyle = .short + html += "" html += "
\(dateFormatter.string(from: createdAt))
" + html += "
" } return html