mirror of
https://github.com/friendica/friendica
synced 2025-04-26 04:30:11 +00:00
The Matrix and XMPP address is now transported via AP as well
This commit is contained in:
parent
56ee1a211f
commit
ce46ab2573
6 changed files with 33 additions and 2 deletions
|
@ -352,6 +352,17 @@ class Transmitter
|
|||
$data['summary'] = BBCode::convertForUriId($owner['uri-id'] ?? 0, $owner['about'], BBCode::EXTERNAL);
|
||||
}
|
||||
|
||||
if (!empty($owner['xmpp']) || !empty($owner['matrix'])) {
|
||||
$data['vcard:hasInstantMessage'] = [];
|
||||
|
||||
if (!empty($owner['xmpp'])) {
|
||||
$data['vcard:hasInstantMessage'][] = 'xmpp:' . $owner['xmpp'];
|
||||
}
|
||||
if (!empty($owner['matrix'])) {
|
||||
$data['vcard:hasInstantMessage'][] = 'matrix:' . $owner['matrix'];
|
||||
}
|
||||
}
|
||||
|
||||
$data['url'] = $owner['url'];
|
||||
$data['manuallyApprovesFollowers'] = in_array($owner['page-flags'], [User::PAGE_FLAGS_NORMAL, User::PAGE_FLAGS_PRVGROUP]);
|
||||
$data['discoverable'] = (bool)$owner['net-publish'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue