Fix custom emojis not displayed in messages and screen name

This commit is contained in:
Thomas 2025-04-03 17:36:43 +02:00
parent ee02589df6
commit 5208512073

View file

@ -330,7 +330,7 @@ class MastodonAccount implements UserInterface
public function addField(CustomField $field): self
{
if (in_array($field, $this->Fields) !== false) {
if (in_array($field, $this->Fields) === false) {
$this->Fields[] = $field;
$field->setMastodonAccount($this);
}
@ -357,7 +357,7 @@ class MastodonAccount implements UserInterface
public function addEmoji(Emoji $emoji): self
{
if (in_array($emoji, $this->Emojis) !== false) {
if (in_array($emoji, $this->Emojis) === false) {
$this->Emojis[] = $emoji;
$emoji->setMastodonAccount($this);
}