diff --git a/classes/Activitypub_profile.php b/classes/Activitypub_profile.php index 59978bf..2079350 100644 --- a/classes/Activitypub_profile.php +++ b/classes/Activitypub_profile.php @@ -43,20 +43,22 @@ class Activitypub_profile extends Managed_DataObject "@language" => "en" ] ], - 'id' => $profile->getID(), - 'type' => 'Person', - 'nickname' => $profile->getNickname (), - 'is_local' => $profile->isLocal(), - 'inbox' => "{$url}/inbox.json", - 'outbox' => "{$url}/outbox.json", - 'display_name' => $profile->getFullname(), - 'followers' => "{$url}/followers.json", - 'following' => "{$url}/following.json", - 'liked' => "{$url}/liked.json", - 'liked_count' => Fave::countByProfile ($profile), - 'summary' => $profile->getDescription(), - 'url' => $profile->getURL(), - 'avatar' => [ + 'id' => $profile->getID(), + 'type' => 'Person', + 'nickname' => $profile->getNickname (), + 'is_local' => $profile->isLocal(), + 'inbox' => "{$url}/inbox.json", + 'outbox' => "{$url}/outbox.json", + 'display_name' => $profile->getFullname(), + 'followers' => "{$url}/followers.json", + 'followers_count' => $profile->subscriberCount(), + 'following' => "{$url}/following.json", + 'following_count' => $profile->subscriptionCount(), + 'liked' => "{$url}/liked.json", + 'liked_count' => Fave::countByProfile ($profile), + 'summary' => $profile->getDescription(), + 'url' => $profile->getURL(), + 'avatar' => [ 'type' => 'Image', 'width' => 96, 'height' => 96,