From 4712d562b5a008db6fc944c1743f56d20a374af8 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 10 Sep 2024 11:23:06 +0000 Subject: [PATCH] Fixes warning "Undefined array key "@type" --- src/Model/APContact.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/APContact.php b/src/Model/APContact.php index 5296043169..27bf3aedab 100644 --- a/src/Model/APContact.php +++ b/src/Model/APContact.php @@ -490,7 +490,7 @@ class APContact { $original = $name; foreach ($tags as $tag) { - if ($tag['@type'] != 'toot:Emoji') { + if (empty($tag['@type']) || ($tag['@type'] != 'toot:Emoji')) { continue; } $name = trim(str_replace($tag['as:name'], '', $name));