Skip to content

Commit 842bb0f

Browse files
authored
fix: private posts being displayed in the RSS feed (#59)
1 parent 61da3ce commit 842bb0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/run/halo/feed/service/PostServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ ListOptions buildPostListOptions(Query query) {
9292
equal("spec.visible", Post.VisibleEnum.PUBLIC.name())
9393
));
9494
if (query != null) {
95-
builder.fieldQuery(query);
95+
builder.andQuery(query);
9696
}
9797
return builder.build();
9898
}

0 commit comments

Comments
 (0)