Console: Limit age of news entries displayed

This commit is contained in:
zzz
2016-12-22 12:03:28 +00:00
parent 0819857b86
commit e625e67b5d
3 changed files with 17 additions and 7 deletions

View File

@@ -231,7 +231,8 @@ public class NewsHelper extends ContentHelper {
*/
@Override
public String getContent() {
return NewsFeedHelper.getEntries(_context, 0, 2);
// show a min of 1, max of 3, none older than 60 days over min
return NewsFeedHelper.getEntries(_context, 0, 3, 60*24*60*60*1000L);
}
/**