Use nullable Boolean for rssExcluded

This commit is contained in:
Tim
2025-08-19 09:17:10 +08:00
parent d3a2acb605
commit e65273daa6
2 changed files with 2 additions and 2 deletions

View File

@@ -63,7 +63,7 @@ public class PostMapper {
dto.setCommentCount(commentService.countComments(post.getId()));
dto.setStatus(post.getStatus());
dto.setPinnedAt(post.getPinnedAt());
dto.setRssExcluded(post.isRssExcluded());
dto.setRssExcluded(post.getRssExcluded() == null || post.getRssExcluded());
List<ReactionDto> reactions = reactionService.getReactionsForPost(post.getId())
.stream()