update dependencies, fix sub comments visibility
This commit is contained in:
parent
f6aaa6382c
commit
a105ea7e93
13
pom.xml
13
pom.xml
@ -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>
|
||||
|
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user