Commit 7cc1c3a1 authored by Zot's avatar Zot Committed by Mario

add federation property to webfinger

parent 8f63d7d5
......@@ -167,6 +167,8 @@ function diaspora_webfinger(&$b) {
'href' => z_root()
];
$b['result']['properties']['http://purl.org/zot/federation'] .= ',diaspora';
// Diaspora requires a salmon link.
// Use this *only* if the gnusoc plugin is not installed and enabled
......
......@@ -108,6 +108,8 @@ function gnusoc_webfinger(&$a,&$b) {
if(! get_pconfig($b['channel']['channel_id'],'system','gnusoc_allowed'))
return;
$b['result']['properties']['http://purl.org/zot/federation'] .= ',ostatus';
$b['result']['links'][] = array('rel' => 'salmon', 'href' => z_root() . '/salmon/' . $b['channel']['channel_address']);
$b['result']['links'][] = array('rel' => 'http://salmon-protocol.org/ns/salmon-replies', 'href' => z_root() . '/salmon/' . $b['channel']['channel_address']);
$b['result']['links'][] = array('rel' => 'http://salmon-protocol.org/ns/salmon-mention', 'href' => z_root() . '/salmon/' . $b['channel']['channel_address']);
......
......@@ -88,6 +88,11 @@ function pubcrawl_webfinger(&$b) {
if(! $b['channel'])
return;
if(! get_pconfig($b['channel']['channel_id'],'system','activitypub_allowed'))
return;
$b['result']['properties']['http://purl.org/zot/federation'] .= ',activitypub';
$b['result']['links'][] = [
'rel' => 'self',
'type' => 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment