fix: exploit md5 hash to solve the limit of label on gitalk #41
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
gitalk评论系统基于Github issues。gitalk会将文章名称转码添加到issues的label里,但是因为issues限制label长度仅为50,中文博客标题转码后非常容易超出长度,从而出现Error: Validation Failed错误。具体参照报错出现 Error: Validation Failed.。
文章名经URL编码后转MD5,可以最大程度避免这个问题。在
_config.yml
添加gitalk的md5布尔值判断来启用该功能。