LoveIt
LoveIt copied to clipboard
[BUG] Gitalk: Comment shared
Question
There comes a weird thing after Gitalk and LoveIt set down: two different posts use the same comments.
Attention to URLs, they are not the same, but with the exactly same comment, where I found in the same Issue.
I submitted that comment only in the 1st post.
What I found
Firstly, Gitalk use a key `id' to distinguish different posts.
Then, I looked into the source code of LoveIt, and I found an unbelievable thing: .Date is used as default value of 'id'!
The file is layouts/partials/comment.html
I checked that above posts: they have the same Id.
Of coz they share the same comments!
Test
I fixed that point replacing .Date
by (md5 .File.Path)
( the md5 of relative path to content
).
They have different id now.
Two different issues generated.
Comments are not shared.
Problem solved!
Is this considered as a bug?