update dependencies, fix sub comments visibility

This commit is contained in:
_Bastler 2024-03-28 10:48:06 +01:00
parent f6aaa6382c
commit a105ea7e93
2 changed files with 6 additions and 9 deletions

13
pom.xml
View File

@ -12,13 +12,13 @@
<java.version>17</java.version>
<querydsl.version>5.0.0</querydsl.version>
<hibernate.version>6.4.0.Final</hibernate.version>
<revision>2.0.1</revision>
<revision>2.2.0</revision>
</properties>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.2.1</version>
<version>3.2.4</version>
<relativePath />
</parent>
@ -109,12 +109,6 @@
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk15on</artifactId>
<version>1.70</version>
</dependency>
</dependencies>
<!-- Database -->
@ -137,6 +131,9 @@
<scope>runtime</scope>
</dependency>
</dependencies>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
</profile>
<profile>
<id>db-mysql</id>

View File

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