Permalink
Browse files

Fixes bug for missing link attribute, closes #1

  • Loading branch information...
1 parent 8459ac5 commit 3803adb7444eaea3507544459872b993c9e97566 @xdamman xdamman committed Oct 4, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rss.js
View
@@ -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 } });

0 comments on commit 3803adb

Please sign in to comment.