mirror of
https://github.com/LightAir/turbo-rss.git
synced 2026-11-11 23:07:54 +03:00
add eslint
This commit is contained in:
1 parent
c5a9e4b5fd
commit
44d345ac6b
3 files changed
+31
-2
No files matched your search
+2
-2
@@ -44,11 +44,11 @@ function generateXML(data) {
|
||||
|
||||
item_values.push({'turbo:content': {_cdata: fullContent}});
|
||||
|
||||
if (typeof item.related !== "undefined") {
|
||||
if (typeof item.related !== 'undefined') {
|
||||
ifTruePush(item.related, item_values, {
|
||||
'yandex:related': item.related.map(
|
||||
function (related) {
|
||||
return '<link url="' + related.link + '" img="' + related.image_url + '">' + related.text + '</link>';
|
||||
return '<link url="' + related.link + '" img="' + related.image_url + '">' + related.text + '</link>';
|
||||
}
|
||||
).join('')
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user