diff options
author | Brendan Long <self@brendanlong.com> | 2017-10-17 16:21:30 +0300 |
---|---|---|
committer | Brendan Long <self@brendanlong.com> | 2017-10-17 16:21:30 +0300 |
commit | dcb57f0c5537fcd7c83e892af3fd8f9b177e701d (patch) | |
tree | 3f04f38375a4c67d8abb84ef6f7451b9d7fc3d5b | |
parent | 1531ff08a135c057d79240aed1f90e3169ea88c7 (diff) |
Handle Feedbin entries with no published time
-rw-r--r-- | plugins/backend/feedbin/feedbinInterface.vala | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/backend/feedbin/feedbinInterface.vala b/plugins/backend/feedbin/feedbinInterface.vala index ba5ef424..f45c5009 100644 --- a/plugins/backend/feedbin/feedbinInterface.vala +++ b/plugins/backend/feedbin/feedbinInterface.vala @@ -720,15 +720,15 @@ public class FeedReader.FeedbinInterface : Peas.ExtensionBase, FeedServerInterfa articles.add( new Article( entry.id.to_string(), - entry.title == null ? "" : entry.title, - entry.url == null ? "" : entry.url, + entry.title != null ? entry.title : "", + entry.url != null ? entry.url : "", entry.feed_id.to_string(), unread_ids.contains(entry.id) ? ArticleStatus.UNREAD : ArticleStatus.READ, starred_ids.contains(entry.id) ? ArticleStatus.MARKED : ArticleStatus.UNMARKED, - entry.content == null ? "" : entry.content, - entry.summary == null ? "" : entry.summary, - entry.author == null ? "" : entry.author, - entry.published, + entry.content != null ? entry.content : "", + entry.summary != null ? entry.summary : "", + entry.author != null ? entry.author : "", + entry.published != null ? entry.published : (entry.created_at != null ? entry.created_at : new DateTime.now_utc()), -1, null, null) |