From 1614416fe06b901ab29d2f9527c9587117a5b701 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Mon, 19 Feb 2018 22:05:47 -0800 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20show=20summary=20text=20in=20th?= =?UTF-8?q?e=20timeline=20if=20it=E2=80=99s=20just=20=E2=80=9CComments.?= =?UTF-8?q?=E2=80=9D=20(As=20in=20Hacker=20News.)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MainWindow/Timeline/Cell/TimelineStringUtilities.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Evergreen/MainWindow/Timeline/Cell/TimelineStringUtilities.swift b/Evergreen/MainWindow/Timeline/Cell/TimelineStringUtilities.swift index 2d71bb19f..6dd0acfdd 100644 --- a/Evergreen/MainWindow/Timeline/Cell/TimelineStringUtilities.swift +++ b/Evergreen/MainWindow/Timeline/Cell/TimelineStringUtilities.swift @@ -128,7 +128,9 @@ func timelineSummaryForArticle(_ article: Article) -> String { var s = body.rs_string(byStrippingHTML: 300) s = timelineNormalizedText(s) - + if s == "Comments" { // Hacker News. + s = "" + } summaryCache[body] = s return s }