Straightforward fix for importing anonymous comments from commento

Fixes #1821
This commit is contained in:
Alik Send
2024-12-16 23:16:26 -06:00
parent c3ba55ba43
commit bfef15f05f
+5
View File
@@ -101,6 +101,11 @@ func (d *Commento) convert(r io.Reader, siteID string) (ch chan store.Comment) {
}
}
usersMap["anonymous"] = store.User{
Name: "Anonymous",
ID: "commento_" + store.EncodeID("anonymous"),
}
for _, comment := range exportedData.Comments {
u, ok := usersMap[comment.CommenterHex]
if !ok {