Compare commits

...

1 Commits

Author SHA1 Message Date
bedc3b66ec fix comment parser. (#485) 2024-10-23 18:03:02 -07:00
2 changed files with 3 additions and 2 deletions

View File

@ -401,7 +401,8 @@ class HackerNewsWebRepository with Loggable {
/// Get comment age.
final Element? cmtAgeElement =
element.querySelector(_commentAgeSelector);
final String? ageString = cmtAgeElement?.attributes['title'];
final String? ageString =
cmtAgeElement?.attributes['title']?.split(' ').firstOrNull;
final int? timestamp = ageString == null
? null

View File

@ -1,6 +1,6 @@
name: hacki
description: A Hacker News reader.
version: 2.9.4+152
version: 2.9.5+153
publish_to: none
environment: