mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-22 15:49:53 +01:00
Merge branch 'use-original-timestamp-for-rss-posts' into 'master'
Use original timestamp for RSS posts, if available See merge request !523
This commit is contained in:
@@ -467,7 +467,11 @@ class FeedManagerImpl implements FeedManager, Client, EventListener,
|
|||||||
|
|
||||||
// get other information for post
|
// get other information for post
|
||||||
GroupId groupId = feed.getBlogId();
|
GroupId groupId = feed.getBlogId();
|
||||||
long time = clock.currentTimeMillis();
|
long time, now = clock.currentTimeMillis();
|
||||||
|
Date date = entry.getUpdatedDate();
|
||||||
|
if (date == null) date = entry.getPublishedDate();
|
||||||
|
if (date == null) time = now;
|
||||||
|
else time = Math.max(0, Math.min(date.getTime(), now));
|
||||||
String body = getPostBody(b.toString());
|
String body = getPostBody(b.toString());
|
||||||
try {
|
try {
|
||||||
// create and store post
|
// create and store post
|
||||||
|
|||||||
Reference in New Issue
Block a user