mirror of
https://gitlab.silvrtree.co.uk/martind2000/rss-braider.git
synced 2025-01-31 14:50:14 +00:00
14 lines
477 B
JavaScript
14 lines
477 B
JavaScript
module.exports = function (item, itemOptions, source) {
|
|
if (!item || !itemOptions) {
|
|
return;
|
|
}
|
|
// 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"]["#"]});
|
|
}
|
|
}; |