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));
}