forked from GNUsocial/gnu-social
[ENTITY][Actor][ActorTag] Ensure only one copy of each tag is inserted
This commit is contained in:
parent
45d1ca88a6
commit
b1585f0ef2
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user