mirror of
https://github.com/LightAir/turbo-rss.git
synced 2026-02-04 03:56:19 +00:00
review fixes
This commit is contained in:
@@ -48,7 +48,7 @@ function addRelated(related, itemValues, relatedfinity) {
|
|||||||
function items(items, channel) {
|
function items(items, channel) {
|
||||||
items.forEach(function (item) {
|
items.forEach(function (item) {
|
||||||
let item_values = [];
|
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});
|
item_values.push({link: item.url});
|
||||||
|
|
||||||
ifTruePush(item.turboSource, item_values, {'turbo:source': item.turboSource});
|
ifTruePush(item.turboSource, item_values, {'turbo:source': item.turboSource});
|
||||||
@@ -143,7 +143,7 @@ function itemData(data) {
|
|||||||
turboSource: data.turboSource || '',
|
turboSource: data.turboSource || '',
|
||||||
turboTopic: data.turboTopic || '',
|
turboTopic: data.turboTopic || '',
|
||||||
goals: data.goals || [],
|
goals: data.goals || [],
|
||||||
turboEnabled: !data.turboDisabled || false,
|
turboEnabled: data.turboEnabled || true,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user