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

View File

@ -76,7 +76,7 @@ public class CommentManager {
return commentRepository.findAll( return commentRepository.findAll(
qComment.target.eq(target).and(qComment.parent.eq(parent)) 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)); PageRequest.of(page, size, sort));
} }