Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #149 from BurdaMagazinOrg/feature/INREL-6662-deal
Browse files Browse the repository at this point in the history
INREL-6662: add "deal" to noindex for google news metatag
  • Loading branch information
killes authored Oct 29, 2019
2 parents 41f52f8 + 29fa714 commit bdd328b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Metatags.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function injectGooglebotNews(Node $node) {
$node->hasField('field_meta_tags') &&
$node->hasField('field_sponsor_type') &&
$node->get('field_sponsor_type')->first() &&
in_array($node->get('field_sponsor_type')->first()->value, ['native', 'advertorial'])
in_array($node->get('field_sponsor_type')->first()->value, ['native', 'advertorial', 'deal'])
) {
$this->setGooglebotNewsMetatagValue($node, $metaTagsValue);
$clearValue = false;
Expand Down

0 comments on commit bdd328b

Please sign in to comment.