mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-07-10 08:57:36 +00:00
[AB-322] adding possibility to define a max age in days for messages to be eligible for stars
This commit is contained in:
@@ -19,6 +19,7 @@ public class StarboardFeatureConfig implements FeatureConfig {
|
||||
public static final String STAR_BADGE_EMOTE_PREFIX = "starboardBadge";
|
||||
public static final String STAR_LEVELS_CONFIG_KEY = "starLvls";
|
||||
public static final String STAR_EMOTE = "star";
|
||||
public static final String STAR_MAX_DAYS_CONFIG_KEY = "starMaxDays";
|
||||
|
||||
@Autowired
|
||||
private DefaultConfigManagementService defaultConfigManagementService;
|
||||
@@ -40,6 +41,7 @@ public class StarboardFeatureConfig implements FeatureConfig {
|
||||
for(int i = maxLevels; i > 0; i--) {
|
||||
configKeys.add(StarboardFeatureConfig.STAR_LVL_CONFIG_PREFIX + i);
|
||||
}
|
||||
configKeys.add(STAR_MAX_DAYS_CONFIG_KEY);
|
||||
return configKeys;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user