Skip to content
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

Ignore leancloud visitor from localhost #916

Merged
merged 3 commits into from
Jun 15, 2019
Merged

Ignore leancloud visitor from localhost #916

merged 3 commits into from
Jun 15, 2019

Conversation

1v9
Copy link
Member

@1v9 1v9 commented Jun 14, 2019

Use an regex to test if current URL includes http://localhost or http://127.0.0.1 or http://0.0.0.0 , if true then return.

If return, the number of visitors won't show in post and everything else is the same as before.

Issue resolved: #915

@1v9 1v9 added this to the v7.2.0 milestone Jun 14, 2019
@1v9
Copy link
Member Author

1v9 commented Jun 14, 2019

Auto-Assign Bot down? 😅

Copy link
Member

@Raincal Raincal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

127.0.0.1 and 0.0.0.0 should be considered too.

@stevenjoezhang stevenjoezhang merged commit 386639d into master Jun 15, 2019
@delete-merged-branch delete-merged-branch bot deleted the leancloud branch June 15, 2019 04:27
tongluyang pushed a commit to tongluyang/hexo-theme-next that referenced this pull request Nov 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Leancloud 阅读次数统计错误问题
4 participants