|
@@ -32,8 +32,8 @@ public class OldStrategy implements FilterStrategy {
|
|
|
List<Content> filterContents = new ArrayList<>();
|
|
|
for (Content content : contents) {
|
|
|
if (ContentPoolEnum.autoArticlePoolLevel4.getContentPool().equals(content.getContentPoolType())
|
|
|
- && Objects.nonNull(content.getRootPublishTimestamp())
|
|
|
- && (content.getRootPublishTimestamp() < DateUtils.getTodayStart() - filterOldStrategyRootPublishDays * 86400000L
|
|
|
+ && ((Objects.nonNull(content.getRootPublishTimestamp())
|
|
|
+ && content.getRootPublishTimestamp() < DateUtils.getTodayStart() - filterOldStrategyRootPublishDays * 86400000L)
|
|
|
|| content.getCreateTimestamp() < DateUtils.getTodayStart() - filterOldStrategyCreateDays * 86400000L)) {
|
|
|
content.setFilterReason("冷启老文章过滤");
|
|
|
filterContents.add(content);
|