description === null) { return null; } $text = strip_tags($this->description); $text = preg_replace('/ +/', ' ', $text); $text = preg_replace("/\n+/", "\n", $text); return mb_strimwidth(trim($text), 0, 255, '…'); } } public string $author { get { if (preg_match('#nitter.poast.org/([^/]+)/#', $this->link, $matches) === 1) { return '@' . $matches[1]; } return parse_url($this->link, PHP_URL_HOST); } } }