3 // !code helpers/md5.js
5 if (doc.type == "post") {
7 } else if (doc.type == "comment") {
8 if (doc.commenter && doc.commenter.email && !doc.commenter.gravatar_url) {
9 doc.commenter.gravatar = hex_md5(doc.commenter.email);
11 emit([doc.post_id, doc.created_at], doc);