$shortcode) { if (preg_match('/src="(.+?)"/', $smilies['icons'][$key], $matches)) { $url = $matches[1]; if ($prototype === null) { $prototype = $this->create($shortcode, $url); $emojis[] = $prototype; } else { $emojis[] = \Friendica\Object\Api\Mastodon\Emoji::createFromPrototype($prototype, $shortcode, $url); } }; } return new Emojis($emojis); } }