mirror of
https://github.com/LightAir/turbo-rss.git
synced 2026-02-04 03:56:19 +00:00
add possibility to set turbo false
This commit is contained in:
@@ -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': 'true'}});
|
||||
item_values.push({_attr: {'turbo': item.turboEnabled}});
|
||||
item_values.push({link: item.url});
|
||||
|
||||
ifTruePush(item.turboSource, item_values, {'turbo:source': item.turboSource});
|
||||
@@ -143,6 +143,7 @@ function itemData(data) {
|
||||
turboSource: data.turboSource || '',
|
||||
turboTopic: data.turboTopic || '',
|
||||
goals: data.goals || [],
|
||||
turboEnabled: !data.turboDisabled || false,
|
||||
};
|
||||
}
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user