configurable user agent string (#825)

This commit is contained in:
Athou
2018-07-31 15:21:45 +02:00
parent b3ce43eaf7
commit e9ef98716f
4 changed files with 12 additions and 1 deletions

View File

@@ -142,6 +142,8 @@ public class CommaFeedConfiguration extends Configuration {
@Valid
private String announcement;
private String userAgent;
public Date getUnreadThreshold() {
int keepStatusDays = getKeepStatusDays();
return keepStatusDays > 0 ? DateUtils.addDays(new Date(), -1 * keepStatusDays) : null;