From 44577ca92131c5ef518730538e10b06f084041d4 Mon Sep 17 00:00:00 2001 From: "scott%scott-macgregor.org" Date: Tue, 31 Aug 2004 23:05:29 +0000 Subject: [PATCH] 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 --- mozilla/mail/extensions/newsblog/content/Feed.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/mail/extensions/newsblog/content/Feed.js b/mozilla/mail/extensions/newsblog/content/Feed.js index a0cf34f797e..a303a5c8a9b 100755 --- a/mozilla/mail/extensions/newsblog/content/Feed.js +++ b/mozilla/mail/extensions/newsblog/content/Feed.js @@ -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])