diff --git a/src/Services/TagService.php b/src/Services/TagService.php index c7967878..a07f63d3 100644 --- a/src/Services/TagService.php +++ b/src/Services/TagService.php @@ -178,11 +178,13 @@ class TagService private function updateImplications(Tag $tag, array $relatedNames) { + $relatedNames = array_udiff($relatedNames, [$tag->getName()], 'strnatcasecmp'); $tag->setImpliedTags($this->createTags($relatedNames)); } private function updateSuggestions(Tag $tag, array $relatedNames) { + $relatedNames = array_udiff($relatedNames, [$tag->getName()], 'strnatcasecmp'); $tag->setSuggestedTags($this->createTags($relatedNames)); } }