id = $post->uri; $this->content = $post->message_html; $this->published = $post->published_at->format(DATE_W3C); $this->attributedTo = $post->actor->uri; if ($post->in_reply_to_id !== null) { $this->to[] = $post->reply_to_post->actor->uri; $this->inReplyTo = $post->reply_to_post->uri; } $this->replies = url_to('post-replies', esc($post->actor->username), $post->id); $this->cc = [$post->actor->followers_url]; } }