From a105ea7e93e063dbed35d673280f5bc409083c0f Mon Sep 17 00:00:00 2001 From: _Bastler Date: Thu, 28 Mar 2024 10:48:06 +0100 Subject: [PATCH] update dependencies, fix sub comments visibility --- pom.xml | 13 +++++-------- .../bstly/board/businesslogic/CommentManager.java | 2 +- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/pom.xml b/pom.xml index cc0f595..4718743 100644 --- a/pom.xml +++ b/pom.xml @@ -12,13 +12,13 @@ 17 5.0.0 6.4.0.Final - 2.0.1 + 2.2.0 org.springframework.boot spring-boot-starter-parent - 3.2.1 + 3.2.4 @@ -109,12 +109,6 @@ org.apache.commons commons-lang3 - - - org.bouncycastle - bcprov-jdk15on - 1.70 - @@ -137,6 +131,9 @@ runtime + + true + db-mysql diff --git a/src/main/java/de/bstly/board/businesslogic/CommentManager.java b/src/main/java/de/bstly/board/businesslogic/CommentManager.java index ccc1b65..1c42b38 100644 --- a/src/main/java/de/bstly/board/businesslogic/CommentManager.java +++ b/src/main/java/de/bstly/board/businesslogic/CommentManager.java @@ -76,7 +76,7 @@ public class CommentManager { return commentRepository.findAll( qComment.target.eq(target).and(qComment.parent.eq(parent)) - .and(qComment.flaggedStatus.eq(FlaggedStatus.NORMAL)).and(qComment.created.before(date)), + .and(qComment.flaggedStatus.eq(FlaggedStatus.NORMAL)).and(qComment.created.before(date).or(qComment.author.eq(username))), PageRequest.of(page, size, sort)); }