-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prevent private posts from being indexed when rebuilding index. #4882
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #4882 +/- ##
============================================
- Coverage 56.70% 56.69% -0.01%
Complexity 2969 2969
============================================
Files 514 514
Lines 16905 16907 +2
Branches 1273 1273
============================================
Hits 9586 9586
- Misses 6782 6784 +2
Partials 537 537 ☔ View full report in Codecov by Sentry. |
api/src/main/java/run/halo/app/core/extension/content/Post.java
Outdated
Show resolved
Hide resolved
api/src/main/java/run/halo/app/core/extension/content/Post.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution!
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JohnNiang The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/milestone 2.11.x |
What type of PR is this?
/kind bug
What this PR does / why we need it:
在加入索引前判断文章的可见性。只将PUBLIC文章加入索引,修复手动刷新搜索索引会将私有文章加入索引的问题
Which issue(s) this PR fixes:
Fix #4879
Special notes for your reviewer:
null
Does this PR introduce a user-facing change?