Rinser/plugins/wfw_slash_comments.js

12 lines
446 B
JavaScript
Raw Normal View History

2015-07-20 13:42:07 +00:00
module.exports = function (item, itemOptions, source) {
// wfw
if (item["wfw:commentrss"] && item["wfw:commentrss"]["#"]){
itemOptions.custom_elements.push({ "wfw:commentRss": item["wfw:commentrss"]["#"]});
}
// // // slash comments
if (item["slash:comments"] && item["slash:comments"]["#"]){
itemOptions.custom_elements.push({ "slash:comments": item["slash:comments"]["#"]});
}
return itemOptions;
};