Skip to content

Commit

Permalink
feat: Add a bit more error checking to the Vulture tag exclus... (DIY…
Browse files Browse the repository at this point in the history
  • Loading branch information
loganrockmore authored May 12, 2020
1 parent 9d3dc27 commit 34f67cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/routes/vulture/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ function FilterItemsWithTags(feed, tagsToExclude) {
return feed.filter(function (item) {
for (const index in tagsToExclude) {
const tagToExclude = tagsToExclude[index];
if (item.tags.includes(tagToExclude)) {
const itemTags = item.tags;
if (itemTags !== undefined && itemTags.includes(tagToExclude)) {
return false;
}
}
Expand Down

0 comments on commit 34f67cc

Please sign in to comment.