Skip to content

Commit

Permalink
Exclude OpenGraph traversal
Browse files Browse the repository at this point in the history
  • Loading branch information
Munter committed Apr 21, 2018
1 parent 2a33d5a commit affb94b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/subfont.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ module.exports = async ({
if (recursive) {
followRelationsQuery = {
$or: [
{ type: { $nin: [...anchorTypes, ...resourceHintTypes] } },
{ type: { $nin: [...anchorTypes, ...resourceHintTypes, 'HtmlOpenGraph'] } },
{ type: { $nin: resourceHintTypes }, crossorigin: false }
]
};
} else {
followRelationsQuery = {
type: {
$nin: [...anchorTypes, ...resourceHintTypes, 'HtmlAlternateLink']
$nin: [...anchorTypes, ...resourceHintTypes, 'HtmlAlternateLink', 'HtmlOpenGraph']
}
};
}
Expand Down

0 comments on commit affb94b

Please sign in to comment.