mirror of
https://github.com/friendica/friendica
synced 2025-04-25 04:30:11 +00:00
Relay code reworked to support AP delivery
This commit is contained in:
parent
490ce976c1
commit
0384bf3e76
8 changed files with 285 additions and 206 deletions
|
@ -67,8 +67,9 @@ class XSocialRelay extends BaseModule
|
|||
'scope' => $scope,
|
||||
'tags' => $tagList,
|
||||
'protocols' => [
|
||||
'diaspora' => [
|
||||
'receive' => DI::baseUrl()->get() . '/receive/public'
|
||||
'activitypub' => [
|
||||
'actor' => DI::baseUrl()->get() . '/friendica',
|
||||
'receive' => DI::baseUrl()->get() . '/inbox'
|
||||
],
|
||||
'dfrn' => [
|
||||
'receive' => DI::baseUrl()->get() . '/dfrn_notify'
|
||||
|
@ -76,6 +77,10 @@ class XSocialRelay extends BaseModule
|
|||
]
|
||||
];
|
||||
|
||||
if (DI::config()->get("system", "diaspora_enabled")) {
|
||||
$relay['protocols']['diaspora'] = ['receive' => DI::baseUrl()->get() . '/receive/public'];
|
||||
}
|
||||
|
||||
header('Content-type: application/json; charset=utf-8');
|
||||
echo json_encode($relay, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
|
||||
exit;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue