Don’t show summary text in the timeline if it’s just “Comments.” (As in Hacker News.)
This commit is contained in:
parent
389f04bcfb
commit
1614416fe0
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue