Transmit mediaType, preparation for header image
This commit is contained in:
parent
47cb89967f
commit
dd39b3203b
|
@ -379,8 +379,19 @@ class Transmitter
|
|||
'owner' => $contact['url'],
|
||||
'publicKeyPem' => $user['pubkey']];
|
||||
$data['endpoints'] = ['sharedInbox' => DI::baseUrl() . '/inbox'];
|
||||
$data['icon'] = ['type' => 'Image',
|
||||
'url' => $contact['photo']];
|
||||
$data['icon'] = ['type' => 'Image', 'url' => $contact['photo']];
|
||||
|
||||
$resourceid = Photo::ridFromURI($contact['photo']);
|
||||
if (!empty($resourceid)) {
|
||||
$photo = Photo::selectFirst(['type'], ["resource-id" => $resourceid]);
|
||||
if (!empty($photo['type'])) {
|
||||
$data['icon']['mediaType'] = $photo['type'];
|
||||
}
|
||||
}
|
||||
|
||||
if (!empty($contact['header'])) {
|
||||
$data['image'] = ['type' => 'Image', 'url' => $contact['header']];
|
||||
}
|
||||
|
||||
$data['generator'] = self::getService();
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user