mirror of
https://github.com/friendica/friendica
synced 2025-04-26 13:10:11 +00:00
Issue 10706: Publish public custom fields in AP
This commit is contained in:
parent
c8344886fd
commit
e3413cf959
2 changed files with 19 additions and 1 deletions
|
@ -392,6 +392,20 @@ class Transmitter
|
|||
}
|
||||
}
|
||||
|
||||
$custom_fields = [];
|
||||
|
||||
foreach (DI::profileField()->selectByContactId(0, 1) 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