mirror of
https://github.com/friendica/friendica
synced 2025-04-26 04:30:11 +00:00
Merge remote-tracking branch 'upstream/2021.09-rc' into user-contact
This commit is contained in:
commit
3dddea96fa
30 changed files with 414 additions and 301 deletions
|
@ -1102,7 +1102,7 @@ class Processor
|
|||
return;
|
||||
}
|
||||
|
||||
Contact::removeFollower($owner, $contact);
|
||||
Contact::removeFollower($contact);
|
||||
Logger::info('Undo following request', ['contact' => $cid, 'user' => $uid]);
|
||||
}
|
||||
|
||||
|
|
|
@ -370,7 +370,7 @@ class Transmitter
|
|||
'owner' => $owner['url'],
|
||||
'publicKeyPem' => $owner['pubkey']];
|
||||
$data['endpoints'] = ['sharedInbox' => DI::baseUrl() . '/inbox'];
|
||||
$data['icon'] = ['type' => 'Image', 'url' => Contact::getAvatarUrlForId($owner['id'], '', $owner['updated'])];
|
||||
$data['icon'] = ['type' => 'Image', 'url' => User::getAvatarUrlForId($uid)];
|
||||
|
||||
$resourceid = Photo::ridFromURI($owner['photo']);
|
||||
if (!empty($resourceid)) {
|
||||
|
@ -392,6 +392,20 @@ class Transmitter
|
|||
}
|
||||
}
|
||||
|
||||
$custom_fields = [];
|
||||
|
||||
foreach (DI::profileField()->selectByContactId(0, $uid) as $profile_field) {
|
||||
$custom_fields[] = [
|
||||
'type' => 'PropertyValue',
|
||||
'name' => $profile_field->label,
|
||||
'value' => BBCode::convertForUriId($owner['uri-id'], $profile_field->value)
|
||||
];
|
||||
};
|
||||
|
||||
if (!empty($custom_fields)) {
|
||||
$data['attachment'] = $custom_fields;
|
||||
}
|
||||
|
||||
$data['generator'] = self::getService();
|
||||
|
||||
// tags: https://kitty.town/@inmysocks/100656097926961126.json
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue