Fixes warning "Undefined array key "@type"

This commit is contained in:
Michael 2024-09-10 11:23:06 +00:00
parent d48d07e18d
commit 4712d562b5

View file

@ -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));