mirror of https://github.com/halo-dev/halo
fix: the encrypted post is in an incorrect state after being recovered from the recycle (#1824)
parent
15dfa54e44
commit
90cd9fdd91
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue