From 5208512073725ce41247ba74f712dd0839131f77 Mon Sep 17 00:00:00 2001 From: Thomas Date: Thu, 3 Apr 2025 17:36:43 +0200 Subject: [PATCH] Fix custom emojis not displayed in messages and screen name --- src/Security/MastodonAccount.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Security/MastodonAccount.php b/src/Security/MastodonAccount.php index 872a049..df0adea 100644 --- a/src/Security/MastodonAccount.php +++ b/src/Security/MastodonAccount.php @@ -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); }