Skip to content

Commit

Permalink
Fixes bug for missing link attribute, closes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
xdamman committed Oct 4, 2011
1 parent 8459ac5 commit 3803adb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rss.js
Expand Up @@ -64,7 +64,7 @@ function generateXML (data){
{ title: { _cdata: item.title } }
];
ifTruePush(item.description, item_values, { description: { _cdata: item.description } });
ifTruePush(item.link, item_values, { link: item.url });
ifTruePush(item.url, item_values, { link: item.url });
ifTruePush(item.link || item.guid || item.title, item_values, { guid: [ { _attr: { isPermaLink: !item.guid && !!item.url } }, item.guid || item.url || item.title ] });

ifTruePush(item.author || data.author, item_values, { 'dc:creator': { _cdata: item.author || data.author } });
Expand Down

0 comments on commit 3803adb

Please sign in to comment.