mirror of https://github.com/Ashinch/ReadYou.git
fix(rss): fix NPE when published date and updated date are both empty
This commit is contained in:
parent
fab99b27a1
commit
441368695c
|
@ -111,7 +111,7 @@ class RssHelper @Inject constructor(
|
|||
id = accountId.spacerDollar(UUID.randomUUID().toString()),
|
||||
accountId = accountId,
|
||||
feedId = feed.id,
|
||||
date = (syndEntry.publishedDate ?: syndEntry.updatedDate).takeIf { !it.isFuture(preDate) } ?: preDate,
|
||||
date = (syndEntry.publishedDate ?: syndEntry.updatedDate)?.takeIf { !it.isFuture(preDate) } ?: preDate,
|
||||
title = syndEntry.title.decodeHTML() ?: feed.name,
|
||||
author = syndEntry.author,
|
||||
rawDescription = (content ?: desc) ?: "",
|
||||
|
|
Loading…
Reference in New Issue