fix: the encrypted post is in an incorrect state after being recovered from the recycle (#1824)

pull/1827/head
guqing 2022-04-07 21:17:14 +08:00 committed by GitHub
parent 15dfa54e44
commit 90cd9fdd91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ public class PostRefreshStatusListener {
if (post.getStatus() != PostStatus.DRAFT) {
if (StringUtils.isNotEmpty(post.getPassword())) {
status = PostStatus.INTIMATE;
} else if (isPrivate) {
} else if (isPrivate && !PostStatus.RECYCLE.equals(status)) {
status = PostStatus.INTIMATE;
} else if (!PostStatus.RECYCLE.equals(status)) {
status = PostStatus.PUBLISHED;