Show invisible badges to query for self

This commit is contained in:
Ehren Kret 2021-09-17 13:25:52 -05:00
parent 44bc90e5ab
commit c0af911197
2 changed files with 1 additions and 2 deletions

View File

@ -94,7 +94,7 @@ public class ConfiguredProfileBadgeConverter implements ProfileBadgeConverter {
final ResourceBundle resourceBundle = resourceBundleFactory.createBundle(BASE_NAME, desiredLocale, control);
List<Badge> badges = accountBadges.stream()
.filter(accountBadge -> accountBadge.isVisible()
.filter(accountBadge -> (isSelf || accountBadge.isVisible())
&& now.isBefore(accountBadge.getExpiration())
&& knownBadges.containsKey(accountBadge.getId()))
.map(accountBadge -> {

View File

@ -19,7 +19,6 @@ public class SelfBadge extends Badge {
private final boolean visible;
@JsonCreator
public SelfBadge(
@JsonProperty("id") final String id,
@JsonProperty("category") final String category,