if the feed item has a link attribute, always use it before using the guid. Fixes some problems with planet.mozilla.org and

mozillazine feedhouse.


git-svn-id: svn://10.0.0.236/branches/AVIARY_1_0_20040515_BRANCH@161558 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
scott%scott-macgregor.org
2004-08-31 23:05:29 +00:00
parent 1468ca595a
commit 44577ca921

View File

@@ -247,7 +247,7 @@ Feed.prototype.parseAsRSS2 = function() {
guidNode.getAttribute('isPermaLink') == 'false' ? false : true;
}
item.url = (guid && isPermaLink) ? guid : link ? link : null;
item.url = link ? link : (guid && isPermaLink) ? guid : null;
item.id = guid;
item.description = getNodeValue(itemNode.getElementsByTagName("description")[0]);
item.title = getNodeValue(itemNode.getElementsByTagName("title")[0])