fix: remove duplicate entry from link elements (#273)
This commit is contained in:
@@ -61,8 +61,10 @@ export function getPageRSS() {
|
||||
title: links[i].getAttribute('title') || defaultTitle,
|
||||
image,
|
||||
};
|
||||
pageRSS.push(feed);
|
||||
unique.save(feed.url);
|
||||
if (!unique.check(feed.url)) {
|
||||
pageRSS.push(feed);
|
||||
unique.save(feed.url);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user