diff --git a/lib/index.js b/lib/index.js index 04012bd..cc718e4 100755 --- a/lib/index.js +++ b/lib/index.js @@ -48,7 +48,7 @@ function addRelated(related, itemValues, relatedfinity) { function items(items, channel) { items.forEach(function (item) { let item_values = []; - item_values.push({_attr: {'turbo': item.turboEnabled}}); + item_values.push({_attr: {'turbo': item.turboEnabled ? 'true' : 'false'}}); item_values.push({link: item.url}); ifTruePush(item.turboSource, item_values, {'turbo:source': item.turboSource}); @@ -143,7 +143,7 @@ function itemData(data) { turboSource: data.turboSource || '', turboTopic: data.turboTopic || '', goals: data.goals || [], - turboEnabled: !data.turboDisabled || false, + turboEnabled: data.turboEnabled || true, }; } /**