Add icon property to Actor action

This commit is contained in:
Daniel Supernault 2018-03-25 17:39:24 -06:00
parent 839e1f01af
commit 6a3e9a6df1

View File

@ -54,11 +54,16 @@ class ActivityPubActorAction extends ManagedAction
'inbox' => null,
'outbox' => null,
'liked' => "{$url}/favorites",
'featured' => null,
'preferredUsername' => $user->nickname,
'name' => $user->nickname,
'summary' => $profile->bio,
'url' => $url
'url' => $url,
'icon' => [
'type' => 'Image',
'width' => 96,
'height' => 96,
'url' => $profile->getAvatar(AVATAR_PROFILE_SIZE)->displayUrl()
]
];
header('Content-Type: application/json');