Don’t show summary text in the timeline if it’s just “Comments.” (As in Hacker News.)

This commit is contained in:
Brent Simmons 2018-02-19 22:05:47 -08:00
parent 389f04bcfb
commit 1614416fe0
1 changed files with 3 additions and 1 deletions

View File

@ -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
}