Add scripts to create myops-getqueryview:
[myops.git] / web / query / views / comments / map.js
1 function(doc) {
2   // !code helpers/md5.js
3   if (doc.type == "comment") {
4     if (doc.commenter && doc.commenter.email && !doc.commenter.gravatar_url) {
5       // todo normalize this schema-ness
6       doc.commenter.gravatar = hex_md5(doc.commenter.email);      
7     }
8     emit(new Date(doc.created_at), doc);
9   }
10 };