From b1585f0ef2b3af9f774555cb7189193e3557649a Mon Sep 17 00:00:00 2001 From: Hugo Sales Date: Thu, 9 Dec 2021 22:23:17 +0000 Subject: [PATCH] [ENTITY][Actor][ActorTag] Ensure only one copy of each tag is inserted --- src/Entity/Actor.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Entity/Actor.php b/src/Entity/Actor.php index 0e42169713..1b7c0e4a56 100644 --- a/src/Entity/Actor.php +++ b/src/Entity/Actor.php @@ -370,6 +370,7 @@ class Actor extends Entity */ public function setSelfTags(array $tags, ?array $existing = null): self { + $tags = array_unique($tags); if (\is_null($existing)) { [$_, $existing] = $this->getSelfTags(); }